[-] BO : filename should be allowed to be empty #PSCFV-3592
This commit is contained in:
1 parent
ad3bf8c1af
commit
8d10b6e7b4
1 file changed
+1
-1
@@ -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