]> source.dussan.org Git - nextcloud-server.git/commitdiff
prevent script execution during slideshow
authorBjoern Schiessle <schiessle@owncloud.com>
Wed, 11 Jul 2012 13:44:39 +0000 (15:44 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 11 Jul 2012 13:44:39 +0000 (15:44 +0200)
apps/gallery/js/slideshow.js

index 88e89f39ff004427baa473a654e266c051c4c7c9..cc5dfc44a266d64083559ee781de53f134ef9841 100644 (file)
@@ -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(/</, '&lt;').replace(/>/, '&gt;'), thumb : a.children[0].src, url : 'javascript:$.endSlideshow()'});
                });
 
                if (images.length <= 0) {