From 692bc3d89cd874706c4313159e792a88cee0cd09 Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Fri, 11 May 2012 08:54:36 +0000 Subject: [PATCH] // Allow non-latin characters to the password + change limit from 32 to 255. git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15206 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)