From: Bjoern Schiessle Date: Wed, 11 Jul 2012 13:44:39 +0000 (+0200) Subject: prevent script execution during slideshow X-Git-Tag: v4.5.0beta1~74^2~371^2~29 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07efd39d8a1b82f61f5ed429cd713c04c5988788;p=nextcloud-server.git prevent script execution during slideshow --- diff --git a/apps/gallery/js/slideshow.js b/apps/gallery/js/slideshow.js index 88e89f39ff0..cc5dfc44a26 100644 --- a/apps/gallery/js/slideshow.js +++ b/apps/gallery/js/slideshow.js @@ -15,7 +15,7 @@ $(document).ready(function(){ var images=[]; $('#gallerycontent div a').each(function(i,a){ - images.push({image : a.href, title : a.title, thumb : a.children[0].src, url : 'javascript:$.endSlideshow()'}); + images.push({image : a.href, title : a.title.replace(//, '>'), thumb : a.children[0].src, url : 'javascript:$.endSlideshow()'}); }); if (images.length <= 0) {