diff options
| author | Nyanmisaka <nst799610810@gmail.com> | 2020-07-27 13:57:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-27 13:57:40 +0800 |
| commit | df6b303da79864dfe0feaf972a9fc3ae5bec3413 (patch) | |
| tree | b54e6b3c216393bbec16a346b3bf9baa08d940c1 /Jellyfin.Server.Implementations/Users/UserManager.cs | |
| parent | 95b961c8647b9db98d52631561cfc98224b905f7 (diff) | |
| parent | d7287a05ad939b27b1107d748c623ebe8dfe6a25 (diff) | |
Merge branch 'master' into tonemap
Diffstat (limited to 'Jellyfin.Server.Implementations/Users/UserManager.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Users/UserManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Users/UserManager.cs b/Jellyfin.Server.Implementations/Users/UserManager.cs index e49a99fe5..eaa6a0a81 100644 --- a/Jellyfin.Server.Implementations/Users/UserManager.cs +++ b/Jellyfin.Server.Implementations/Users/UserManager.cs @@ -766,8 +766,8 @@ 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 ('), and periods (.) - return Regex.IsMatch(name, @"^[\w\-'._@]*$"); + // Usernames can contain letters (a-z + whatever else unicode is cool with), numbers (0-9), at-signs (@), dashes (-), underscores (_), apostrophes ('), periods (.) and spaces ( ) + return Regex.IsMatch(name, @"^[\w\ \-'._@]*$"); } private IAuthenticationProvider GetAuthenticationProvider(User user) |
