mirror of
https://github.com/grocy/grocy.git
synced 2025-08-13 17:27:23 +00:00
Finished first version of "pictures for products" (references #58)
This commit is contained in:
@@ -192,7 +192,7 @@ function Pluralize($number, $singularForm, $pluralForm)
|
||||
|
||||
function IsValidFileName($fileName)
|
||||
{
|
||||
if(preg_match('#^[a-z0-9]+\.[a-z]+?$#i', $fileName))
|
||||
if(preg_match('=^[^/?*;:{}\\\\]+\.[^/?*;:{}\\\\]+$=', $fileName))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user