summaryrefslogtreecommitdiffstats
path: root/lib/private/user
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-20 14:21:54 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-20 14:21:54 +0100
commit7b54bf26ea067af53c5fe611ce989908d9b90e31 (patch)
treec18c83186a002be25662e0332416e780b1e92c1e /lib/private/user
parentdbfa143e2d9df21da38702e52aa3690ede9589de (diff)
downloadnextcloud-server-7b54bf26ea067af53c5fe611ce989908d9b90e31.tar.gz
nextcloud-server-7b54bf26ea067af53c5fe611ce989908d9b90e31.zip
fix error message and comment
Diffstat (limited to 'lib/private/user')
-rw-r--r--lib/private/user/manager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/user/manager.php b/lib/private/user/manager.php
index 696a37996bc..282ec5f6b46 100644
--- a/lib/private/user/manager.php
+++ b/lib/private/user/manager.php
@@ -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) == '') {