summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-02-24 09:58:53 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-02-24 09:58:53 +0100
commita320edaca5f90a713ad5e394555bcbddce2cb319 (patch)
treefd3a14e608845413dacf64e7ca24fee9ef20b78a /apps/files
parent8bd3d5551785e4257f8b4aa9a4a14064bde95eff (diff)
parent8e02592e3f047f3c511b613fe16d58d21ff7168b (diff)
downloadnextcloud-server-a320edaca5f90a713ad5e394555bcbddce2cb319.tar.gz
nextcloud-server-a320edaca5f90a713ad5e394555bcbddce2cb319.zip
Merge pull request #14419 from owncloud/preview_apostrophe_fix
fix issue with previews not being displayed if filename contains apostrophe
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/js/filelist.js4
1 files changed, 2 insertions, 2 deletions
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;