Fix creating very uncommon (bugged) account names

(cherry picked from commit 0326657d60c3f44bbd64d5cb22d4cbc5499dea88)
This commit is contained in:
slawkens 2020-07-07 01:23:36 +02:00
parent de1d6b9629
commit 60eac97945

View File

@ -91,7 +91,7 @@ class Validator
return false;
}
if(!preg_match("/[A-Z0-9]/i", $name))
if(!preg_match("/^[A-Z0-9]+$/i", $name))
{
self::$lastError = 'Invalid account name format. Use only A-Z and numbers 0-9.';
return false;