mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Added ' to characters allowed in the username
This commit is contained in:
parent
f076bfac32
commit
dbfa143e2d
@ -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) == '') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user