summaryrefslogtreecommitdiffstats
path: root/core/js/oc-dialogs.js
diff options
context:
space:
mode:
authorOlivier Paroz <oparoz@users.noreply.github.com>2015-05-29 18:34:38 +0200
committerOlivier Paroz <oparoz@users.noreply.github.com>2015-05-29 18:34:38 +0200
commitf05ac47eb65c1bb418d89636c660093c79e4bef5 (patch)
tree3bdf89d0a0c50ca65fd0a2b7ca3a29e296f1829e /core/js/oc-dialogs.js
parent6aeaa6954b5b753a04c678109f1df614a32b6fda (diff)
downloadnextcloud-server-f05ac47eb65c1bb418d89636c660093c79e4bef5.tar.gz
nextcloud-server-f05ac47eb65c1bb418d89636c660093c79e4bef5.zip
Escape single quotes
Diffstat (limited to 'core/js/oc-dialogs.js')
-rw-r--r--core/js/oc-dialogs.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js
index 8ebce841bea..9f88c268369 100644
--- a/core/js/oc-dialogs.js
+++ b/core/js/oc-dialogs.js
@@ -389,6 +389,8 @@ var OCdialogs = {
forceIcon: 0
};
var previewpath = OC.generateUrl('/core/preview.png?') + $.param(urlSpec);
+ // Escaping single quotes
+ previewpath = previewpath.replace(/'/g, "%27")
$originalDiv.find('.icon').css({"background-image": "url('" + previewpath + "')"});
getCroppedPreview(replacement).then(
function(path){