diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-05 16:36:05 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2012-06-05 16:36:05 +0200 |
commit | 0d1a07d4ae5f3023ff2a8c3c530a28ac97d7797f (patch) | |
tree | f02f2372b31c08166e013f6ebc7aa4826aef20aa /apps | |
parent | edecc5bca3af674d3af8cd8506b5571146dc0357 (diff) | |
download | nextcloud-server-0d1a07d4ae5f3023ff2a8c3c530a28ac97d7797f.tar.gz nextcloud-server-0d1a07d4ae5f3023ff2a8c3c530a28ac97d7797f.zip |
show pictures in folder with special characters, e.g. '+'
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_imageviewer/js/lightbox.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js index 7a7fb663857..69cda7a0ecc 100644 --- a/apps/files_imageviewer/js/lightbox.js +++ b/apps/files_imageviewer/js/lightbox.js @@ -22,7 +22,7 @@ function viewImage(dir, file) { if(file.indexOf('.psd')>0){//can't view those return; } - var location=OC.filePath('files','ajax','download.php')+'?files='+file+'&dir='+dir; + var location=OC.filePath('files','ajax','download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir); $.fancybox({ "href": location, "title": file.replace(/</, "<").replace(/>/, ">"), |