The Free Software Media System - Server Backend & API
Make UserManager.IsValidUsername static
Patrick Barron4857b7d62097
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.csindex 3d473f5f21..b62c648309 100644--- a/Jellyfin.Server.Implementations/Users/UserManager.cs+++ b/Jellyfin.Server.Implementations/Users/UserManager.cs@@ -648,7 +648,7 @@ namespace Jellyfin.Server.Implementations.UsersdbContext.SaveChanges();}- private bool IsValidUsername(string name)+ private static bool IsValidUsername(string name){// This is some regex that matches only on unicode "word" characters, as well as -, _ and @// In theory this will cut out most if not all 'control' characters which should help minimize any weirdness