diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-02-04 11:02:13 +0100 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-02-04 11:02:13 +0100 |
commit | f1672d7d10477026cfa4f49a8ec7c71e03f3f6ba (patch) | |
tree | d5a4b34d62de98bd9da7342be84e38bda9ef72a3 /apps/gallery/js | |
parent | 5a106d10361865dfd5cffe8809caee73ff410c4c (diff) | |
download | nextcloud-server-f1672d7d10477026cfa4f49a8ec7c71e03f3f6ba.tar.gz nextcloud-server-f1672d7d10477026cfa4f49a8ec7c71e03f3f6ba.zip |
handling special chars in dirnames
Diffstat (limited to 'apps/gallery/js')
-rw-r--r-- | apps/gallery/js/albums.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/js/albums.js b/apps/gallery/js/albums.js index 01e146a2f12..987412f28e0 100644 --- a/apps/gallery/js/albums.js +++ b/apps/gallery/js/albums.js @@ -54,12 +54,12 @@ Albums={ event.preventDefault(); galleryRemove(event.data.name); }); - $("a.view", local).attr('href','?view='+a.name); + $("a.view", local).attr('href','?view='+escape(a.name)); $('h1',local).text(a.name); $(".gallery_album_cover", local).attr('title',a.name); $(".gallery_album_cover", local).css('background-repeat', 'no-repeat'); $(".gallery_album_cover", local).css('background-position', '0'); - $(".gallery_album_cover", local).css('background-image','url("ajax/galleryOp.php?operation=get_covers&albumname='+a.name+'")'); + $(".gallery_album_cover", local).css('background-image','url("ajax/galleryOp.php?operation=get_covers&albumname='+escape(a.name)+'")'); $(".gallery_album_cover", local).mousemove(function(e) { var albumMetadata = Albums.find(this.title); |