Whitelist more special chars in path (fix #108)

old-stable24
Varun Patil 2022-10-24 15:50:22 -07:00
parent 3cd6fd5a7f
commit 0e7dea9e28
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**