Escape single quotes

This commit is contained in:
Olivier Paroz 2015-05-29 18:34:38 +02:00
parent 6aeaa6954b
commit f05ac47eb6
1 changed files with 2 additions and 0 deletions

View File

@ -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){