Fix case with nested folder timeline (#39)

@folosleg
pull/62/head
Varun Patil 2022-09-15 11:06:19 -07:00
parent ecd4d196d0
commit 177774e55f
1 changed files with 2 additions and 2 deletions

View File

@ -82,14 +82,14 @@ class Exif {
* @param string $path
*/
public static function sanitizePath(string $path) {
return mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).])", '', $path);
return mb_ereg_replace("([^\w\s\d\-_~,;\[\]\(\).\/])", '', $path);
}
/**
* Keep only one slash if multiple repeating
*/
public static function removeExtraSlash(string $path) {
return mb_ereg_replace('~/+~', '/', $path);
return mb_ereg_replace('\/\/+', '/', $path);
}
/**