Allow the use of the character ' in captions.

This commit is contained in:
Alda Marteau-Hardi 2013-07-12 13:02:54 +02:00
parent f3bd1b70fb
commit 65499b97b1
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ if (file_exists($currentdir ."/captions.txt"))
"name" => $file,
"date" => filemtime($currentdir . "/" . $file),
"size" => filesize($currentdir . "/" . $file),
"html" => "<li><a href='" . $currentdir . "/" . $file . "' rel='lightbox[billeder]' title='".$img_captions[$file]."'><span></span><img src='" . GALLERY_ROOT . "createthumb.php?filename=" . $thumbdir . "/" . $file . "&amp;size=$thumb_size' alt='$label_loading' /></a></li>");
"html" => "<li><a href='" . $currentdir . "/" . $file . "' rel='lightbox[billeder]' title=\"".htmlentities($img_captions[$file])."\"><span></span><img src='" . GALLERY_ROOT . "createthumb.php?filename=" . $thumbdir . "/" . $file . "&amp;size=$thumb_size' alt='$label_loading' /></a></li>");
}
// Other filetypes
$extension = "";