From 60eac9794535b3cef6b14fa18bc6a5a32310c6b0 Mon Sep 17 00:00:00 2001 From: slawkens Date: Tue, 7 Jul 2020 01:23:36 +0200 Subject: [PATCH] Fix creating very uncommon (bugged) account names (cherry picked from commit 0326657d60c3f44bbd64d5cb22d4cbc5499dea88) --- system/libs/validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/libs/validator.php b/system/libs/validator.php index ff082be6..66ac3cc4 100644 --- a/system/libs/validator.php +++ b/system/libs/validator.php @@ -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;