]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix error message and comment
authorMorris Jobke <hey@morrisjobke.de>
Wed, 20 Jan 2016 13:21:54 +0000 (14:21 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 20 Jan 2016 13:21:54 +0000 (14:21 +0100)
lib/private/user/manager.php

index 696a37996bc02a72da87abcc84f473c52b1257af..282ec5f6b464e2c4b92bbf51e0579750eaa14fef 100644 (file)
@@ -255,10 +255,10 @@ class Manager extends PublicEmitter implements IUserManager {
        public function createUser($uid, $password) {
                $l = \OC::$server->getL10N('lib');
                // Check the name for bad characters
-               // Allowed are: "a-z", "A-Z", "0-9" and "_.@-"
+               // Allowed are: "a-z", "A-Z", "0-9" and "_.@-'"
                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) == '') {