diff options
| author | Bond-009 <bond.009@outlook.com> | 2023-02-18 14:02:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-18 14:02:47 +0100 |
| commit | 336e08de1ef9cef04fa07f90efe9a4fc31343908 (patch) | |
| tree | 262d954bcfd1f99020fa13d9f7ff3d8b7e84a440 /Jellyfin.Server.Implementations | |
| parent | 80939b922c08c926dd470ce19bc961cd4cc7f8b4 (diff) | |
| parent | 48263078b46aa4ef46c0fb6944665b2c317bf077 (diff) | |
Merge pull request #9337 from Bond-009/regex
Diffstat (limited to 'Jellyfin.Server.Implementations')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/UserManager.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs index 92384986a..c4756433e 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -740,7 +740,7 @@ namespace Jellyfin.Server.Implementations.Users throw new ArgumentException("Usernames can contain unicode symbols, numbers (0-9), dashes (-), underscores (_), apostrophes ('), and periods (.)", nameof(name)); } - private static bool IsValidUsername(string name) + private static bool IsValidUsername(ReadOnlySpan<char> 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 |
