diff options
author | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-05-29 18:34:38 +0200 |
---|---|---|
committer | Olivier Paroz <oparoz@users.noreply.github.com> | 2015-05-29 18:34:38 +0200 |
commit | f05ac47eb65c1bb418d89636c660093c79e4bef5 (patch) | |
tree | 3bdf89d0a0c50ca65fd0a2b7ca3a29e296f1829e /core/js/oc-dialogs.js | |
parent | 6aeaa6954b5b753a04c678109f1df614a32b6fda (diff) | |
download | nextcloud-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.js | 2 |
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){ |