diff options
| author | JPVenson <github@jpb.software> | 2025-03-01 14:16:49 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.software> | 2025-03-01 14:16:49 +0000 |
| commit | feea5af2f3f138c731ae46ca92b67039f6ab96f6 (patch) | |
| tree | 769b727dc848b3be94e0d12e741a4a3d2f00e2d8 /Jellyfin.Server.Implementations/Users/UserManager.cs | |
| parent | a6b4d124d71c0bbb9dff5f226e65875e03384ab4 (diff) | |
| parent | 04f7cd6011633f51a4ae50c81141a390d8164bbc (diff) | |
Merge remote-tracking branch 'jellyfinorigin/master' into feature/DatabaseRefactor
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
| -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 1939122eb..79fa70c0b 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -114,7 +114,7 @@ namespace Jellyfin.Server.Implementations.Users // 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 // Usernames can contain letters (a-z + whatever else unicode is cool with), numbers (0-9), at-signs (@), dashes (-), underscores (_), apostrophes ('), periods (.) and spaces ( ) - [GeneratedRegex(@"^[\w\ \-'._@+]+$")] + [GeneratedRegex(@"^(?!\s)[\w\ \-'._@+]+(?<!\s)$")] private static partial Regex ValidUsernameRegex(); /// <inheritdoc/> |
