diff --git a/src/Resources/contao/templates/rsts_default.html5 b/src/Resources/contao/templates/rsts_default.html5 index bb163bf..ccd3590 100644 --- a/src/Resources/contao/templates/rsts_default.html5 +++ b/src/Resources/contao/templates/rsts_default.html5 @@ -24,7 +24,7 @@ fullsize && !$image->href) { - $lightboxUrls[] = array(TL_FILES_URL . $image->singleSRC, $image->linkTitle ?: $image->picture['alt']); + $lightboxUrls[] = array(TL_FILES_URL . \Contao\System::urlEncode($image->singleSRC), $image->linkTitle ?: $image->picture['alt']); } ?> fullsize) { - $attributes[] = 'href="' . TL_FILES_URL . $image->singleSRC . '"'; + $attributes[] = 'href="' . TL_FILES_URL . \Contao\System::urlEncode($image->singleSRC) . '"'; $attributes[] = 'data-lightbox="' . substr(md5('mod_rocksolid_slider_' . $this->id), 0, 6) . '"'; } if (!empty($this->rsts_invertControls)) { @@ -178,8 +178,8 @@ } } else { - $lightboxUrls[] = array(TL_FILES_URL . $slide['image']->singleSRC, $slide['title']); - $attributes .= ' href="' . TL_FILES_URL . $slide['image']->singleSRC . '" data-lightbox="' . substr(md5('mod_rocksolid_slider_' . $this->id), 0, 6) . '" title="' . \Contao\StringUtil::specialchars($slide['title']) . '"'; + $lightboxUrls[] = array(TL_FILES_URL . \Contao\System::urlEncode($slide['image']->singleSRC), $slide['title']); + $attributes .= ' href="' . TL_FILES_URL . \Contao\System::urlEncode($slide['image']->singleSRC) . '" data-lightbox="' . substr(md5('mod_rocksolid_slider_' . $this->id), 0, 6) . '" title="' . \Contao\StringUtil::specialchars($slide['title']) . '"'; } } ?>