summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2015-02-22 16:51:16 +0100
committerGeorg Ehrke <developer@georgehrke.com>2015-02-22 16:51:16 +0100
commit8e02592e3f047f3c511b613fe16d58d21ff7168b (patch)
treed3172f382deeefc53ad55bb4e37339d5d9934edb /apps
parentef09e5d395ac40bc8fcd2ed7d39555cf22ae8e7b (diff)
downloadnextcloud-server-8e02592e3f047f3c511b613fe16d58d21ff7168b.tar.gz
nextcloud-server-8e02592e3f047f3c511b613fe16d58d21ff7168b.zip
fix issue with previews not being displayed if filename contains apostrophe
Diffstat (limited to 'apps')
-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;