diff --git a/classes/Validate.php b/classes/Validate.php index 2e5978c6e..9de147573 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -407,7 +407,7 @@ class ValidateCore */ public static function isPasswd($passwd, $size = 5) { - return preg_match('/^[.a-zA-Z_0-9-!@#$%\^&*()]{'.(int)$size.',32}$/', $passwd); + return (Tools::strlen($passwd) > $size && Tools::strlen($passwd) < 255); } public static function isPasswdAdmin($passwd)