Slashes unescaping seemed overcomplicated.

This commit is contained in:
Alda Marteau-Hardi 2014-11-24 20:43:39 +01:00
parent f72084ccff
commit 6099e982ab

View file

@ -289,7 +289,7 @@ $dirs = array();
if (is_file($currentdir.'/'.$file.'.html')) {
$img_captions[$file] = $file.'::'.htmlspecialchars(file_get_contents($currentdir.'/'.$file.'.html'),ENT_QUOTES);
}
$linkUrl = join("/", array_merge(array_map(rawurlencode, split("/", $currentdir)), array(rawurlencode($file))));
$linkUrl = str_replace('%2F', '/', rawurlencode("$currentdir/$file"));
$imgParams = http_build_query(
array(
'filename' => "$thumbdir/$file",