summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Tanghus <thomas@tanghus.net>2012-06-16 18:54:55 +0200
committerThomas Tanghus <thomas@tanghus.net>2012-06-16 18:54:55 +0200
commit1118498050c3098e23bafe9e6dc78a465d913531 (patch)
treeb76cb8a26dcc7db22b8945b15974edfb4e26fe53
parent4cbdd59859af971549a77ab684a06e08ee5f46d7 (diff)
downloadnextcloud-server-1118498050c3098e23bafe9e6dc78a465d913531.tar.gz
nextcloud-server-1118498050c3098e23bafe9e6dc78a465d913531.zip
files_imageviewer: Double encode paths. Fixes oc-1016.
-rw-r--r--apps/files_imageviewer/js/lightbox.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js
index 69cda7a0ecc..31f08456d22 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='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
+ var location=OC.filePath('files','ajax','download.php')+encodeURIComponent('?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir));
$.fancybox({
"href": location,
"title": file.replace(/</, "&lt;").replace(/>/, "&gt;"),