Escape single quotes
This commit is contained in:
parent
6aeaa6954b
commit
f05ac47eb6
|
@ -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){
|
||||
|
|
Loading…
Reference in New Issue