Merge pull request #64 from Lucas-C/master

Do not escape slashes in images href URLs
This commit is contained in:
Tom.C. 2014-11-24 18:43:59 +01:00
commit f72084ccff

View file

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