Merge pull request #14419 from owncloud/preview_apostrophe_fix

fix issue with previews not being displayed if filename contains apostrophe
This commit is contained in:
Joas Schilling 2015-02-24 09:58:53 +01:00
commit a320edaca5
1 changed files with 2 additions and 2 deletions

View File

@ -947,7 +947,7 @@
mime: mime,
etag: fileData.etag,
callback: function(url) {
iconDiv.css('background-image', 'url(' + url + ')');
iconDiv.css('background-image', 'url("' + url + '")');
}
});
}
@ -959,7 +959,7 @@
};
var previewUrl = this.generatePreviewUrl(urlSpec);
previewUrl = previewUrl.replace('(', '%28').replace(')', '%29');
iconDiv.css('background-image', 'url(' + previewUrl + ')');
iconDiv.css('background-image', 'url("' + previewUrl + '")');
}
}
return tr;