Whitelist more special chars in path (fix #108)
parent
3cd6fd5a7f
commit
0e7dea9e28
|
@ -80,7 +80,7 @@ class Exif
|
|||
*/
|
||||
public static function sanitizePath(string $path)
|
||||
{
|
||||
return mb_ereg_replace('([^\\w\\s\\d\\-_~,;\\[\\]\\(\\).\\/])', '', $path);
|
||||
return mb_ereg_replace('([^\\w\\s\\d\\-_~,;:!@#$&*{}\[\]\'\\[\\]\\(\\).\\\/])', '', $path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue