From: Georg Ehrke Date: Sun, 22 Feb 2015 15:51:16 +0000 (+0100) Subject: fix issue with previews not being displayed if filename contains apostrophe X-Git-Tag: v8.1.0alpha1~434^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8e02592e3f047f3c511b613fe16d58d21ff7168b;p=nextcloud-server.git fix issue with previews not being displayed if filename contains apostrophe --- diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index e5634323ef1..871c42ead89 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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;