mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
Merge eca9d75d0b into d09b8c99de
This commit is contained in:
commit
3a94c83d19
1 changed files with 2 additions and 2 deletions
|
|
@ -696,8 +696,8 @@ class Manager extends PublicEmitter implements IUserManager {
|
|||
$l = Server::get(IFactory::class)->get('lib');
|
||||
|
||||
// Check the ID for bad characters
|
||||
// Allowed are: "a-z", "A-Z", "0-9", spaces and "_.@-'"
|
||||
if (preg_match('/[^a-zA-Z0-9 _.@\-\']/', $uid)) {
|
||||
// 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 an Login:'
|
||||
. ' "a-z", "A-Z", "0-9", spaces and "_.@-\'"'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue