aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-26 12:16:51 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-26 12:16:51 +0200
commit46cbd7cd3b37e073ebb497f34d54ab67e4761969 (patch)
treea6b5a5ba0136c3f6b4ea1dd90fbf1bc14a770199 /apps
parent58c727a4955b9ab60fa3c31fe902b673e883d181 (diff)
downloadnextcloud-server-46cbd7cd3b37e073ebb497f34d54ab67e4761969.tar.gz
nextcloud-server-46cbd7cd3b37e073ebb497f34d54ab67e4761969.zip
fix preview issue when uploading a file with parentheses
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/files.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 79fa01aa0aa..a890da843bb 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -843,7 +843,9 @@ function lazyLoadPreview(path, mime, ready) {
var y = $('#filestable').data('preview-y');
var previewURL = OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:x, y:y});
$.get(previewURL, function() {
- ready(previewURL);
+ previewURL = previewURL.replace('(','%28');
+ previewURL = previewURL.replace(')','%29');
+ ready(previewURL + '&reload=true');
});
}