Replace ' in the Whole Image Path

This commit is contained in:
seiichiro 2022-09-02 20:59:30 +02:00
parent 7bc70d75f5
commit 9e3d2bf72a

View file

@ -160,7 +160,7 @@ if (!empty($curfiles)| !empty($dirs)) {
$data['gallery_page'] = ceil($page/$gslice);
$data['gallery_slice'] = $gslice;
foreach ($curfiles as $index => $image) {
$data['imageurl'] = $imageurl.$dir.'/'.str_replace("'", "'", $image);
$data['imageurl'] = str_replace("'", "'", $imageurl.$dir.'/'.$image);
$data['imagename'] = $image;
$data['tags'] = array_filter(explode(" ", pathinfo(trim(strstr(strtolower($image), ' - '), " -"))['filename']));
}