This commit is contained in:
kale1d0code 2026-02-03 19:57:51 -01:00 committed by GitHub
commit 3a94c83d19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 "_.@-\'"'));
}