From 0e7dea9e289ad922064b0ccf740c63276d7bc142 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Mon, 24 Oct 2022 15:50:22 -0700 Subject: [PATCH] Whitelist more special chars in path (fix #108) --- lib/Exif.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Exif.php b/lib/Exif.php index 1d8d733a..b17c21ec 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -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); } /**