diff options
author | Michael U <mdusher@users.noreply.github.com> | 2015-11-20 08:29:40 +1100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-20 14:11:27 +0100 |
commit | dbfa143e2d9df21da38702e52aa3690ede9589de (patch) | |
tree | e6699639cfdf96b296dd5916078046bcd448c0f3 /lib/private | |
parent | f076bfac32bfd5439dbabb47dda36e4d43d2079a (diff) | |
download | nextcloud-server-dbfa143e2d9df21da38702e52aa3690ede9589de.tar.gz nextcloud-server-dbfa143e2d9df21da38702e52aa3690ede9589de.zip |
Added ' to characters allowed in the username
Diffstat (limited to 'lib/private')
-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 2aafe98cef2..696a37996bc 100644 --- a/lib/private/user/manager.php +++ b/lib/private/user/manager.php @@ -256,9 +256,9 @@ class Manager extends PublicEmitter implements IUserManager { $l = \OC::$server->getL10N('lib'); // Check the name for bad characters // Allowed are: "a-z", "A-Z", "0-9" and "_.@-" - if (preg_match('/[^a-zA-Z0-9 _\.@\-]/', $uid)) { + if (preg_match('/[^a-zA-Z0-9 _\.@\-\']/', $uid)) { throw new \Exception($l->t('Only the following characters are allowed in a username:' - . ' "a-z", "A-Z", "0-9", and "_.@-"')); + . ' "a-z", "A-Z", "0-9", and "_.@-"\'')); } // No empty username if (trim($uid) == '') { |