diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2023-01-13 10:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 10:45:27 +0100 |
commit | 2db1e75be262c46afee442070c32caa86cac58be (patch) | |
tree | a3f2cfdefe5c68f2f8b23ee7a0610acbb8e35cde /lib | |
parent | b88864b89967cabd78c47d75ee2ff4b1d204934f (diff) | |
parent | cc54a81b16f81db55b1a9899fcd533f1c419a62b (diff) | |
download | nextcloud-server-2db1e75be262c46afee442070c32caa86cac58be.tar.gz nextcloud-server-2db1e75be262c46afee442070c32caa86cac58be.zip |
Merge pull request #36067 from nextcloud/enh/noid/spaces-are-allowed-in-userids
spaces are allowed in userids
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/Manager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/User/Manager.php b/lib/private/User/Manager.php index 82fc4d818ad..937d825ed77 100644 --- a/lib/private/User/Manager.php +++ b/lib/private/User/Manager.php @@ -714,10 +714,10 @@ class Manager extends PublicEmitter implements IUserManager { $l = Server::get(IFactory::class)->get('lib'); // Check the name for bad characters - // Allowed are: "a-z", "A-Z", "0-9" and "_.@-'" + // Allowed are: "a-z", "A-Z", "0-9", spaces and "_.@-'" if (preg_match('/[^a-zA-Z0-9 _.@\-\']/', $uid)) { throw new \InvalidArgumentException($l->t('Only the following characters are allowed in a username:' - . ' "a-z", "A-Z", "0-9", and "_.@-\'"')); + . ' "a-z", "A-Z", "0-9", spaces and "_.@-\'"')); } // No empty username |