diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-11 15:44:39 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-07-11 15:44:39 +0200 |
commit | 07efd39d8a1b82f61f5ed429cd713c04c5988788 (patch) | |
tree | 369da6b5d76761fea0bb50eaa745136bb4492c7f /apps | |
parent | e248412ca9e9b75db5c7a4cc9651391e341c66f5 (diff) | |
download | nextcloud-server-07efd39d8a1b82f61f5ed429cd713c04c5988788.tar.gz nextcloud-server-07efd39d8a1b82f61f5ed429cd713c04c5988788.zip |
prevent script execution during slideshow
Diffstat (limited to 'apps')
-rw-r--r-- | apps/gallery/js/slideshow.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(/</, '<').replace(/>/, '>'), thumb : a.children[0].src, url : 'javascript:$.endSlideshow()'}); }); if (images.length <= 0) { |