From 7ac72c91bde045795121538a0dc1dbf415fe5cd4 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Fri, 10 Aug 2012 12:24:18 +0000 Subject: [PATCH] [-] BO : filename should be allowed to be empty #PSCFV-3592 git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16792 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 665e1afae..ad2f187e9 100644 --- a/classes/Validate.php +++ b/classes/Validate.php @@ -761,7 +761,7 @@ class ValidateCore */ public static function isFileName($name) { - return preg_match('/^[a-zA-Z0-9_.-]*$/', $name); + return preg_match('/^[a-zA-Z0-9_.-]+$/', $name); } /**