[-] 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
This commit is contained in:
@@ -761,7 +761,7 @@ class ValidateCore
|
|||||||
*/
|
*/
|
||||||
public static function isFileName($name)
|
public static function isFileName($name)
|
||||||
{
|
{
|
||||||
return preg_match('/^[a-zA-Z0-9_.-]*$/', $name);
|
return preg_match('/^[a-zA-Z0-9_.-]+$/', $name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user