Fix creating very uncommon (bugged) account names

This commit is contained in:
slawkens 2020-07-07 01:23:36 +02:00
parent fcff820858
commit 0326657d60

View File

@ -91,7 +91,7 @@ class Validator
return false; 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.'; self::$lastError = 'Invalid account name format. Use only A-Z and numbers 0-9.';
return false; return false;