From 393b15665b04f13c4e13f9835f996ea245011ea5 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 --- 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); } /**