summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-02-09 01:28:25 -0800
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-02-09 01:28:25 -0800
commit5a15221910aa8307d58ae89fc8cb3555663b36d8 (patch)
treeb84b2f0ca3a65b10542cffa0ec95c94427ca8f9e /apps/files/js
parent39183255205cd07028296f82da04d0fae19d3248 (diff)
parented1dc3e064e4ca64fc2db2cecbd1f6bd48242b7b (diff)
downloadnextcloud-server-5a15221910aa8307d58ae89fc8cb3555663b36d8.tar.gz
nextcloud-server-5a15221910aa8307d58ae89fc8cb3555663b36d8.zip
Merge pull request #1550 from owncloud/fix-files-download-links
Fix files router download links
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 9c794d24e4f..e4c71d41b2a 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -15,7 +15,7 @@ var FileList={
extension=false;
}
html+='<td class="filename" style="background-image:url('+img+')"><input type="checkbox" />';
- html+='<a class="name" href="download.php?file='+$('#dir').val().replace(/</, '&lt;').replace(/>/, '&gt;')+'/'+escapeHTML(name)+'"><span class="nametext">'+escapeHTML(basename);
+ html+='<a class="name" href="' +OC.Router.generate('download', { file: $('#dir').val()+'/'+name }) +'"><span class="nametext">'+escapeHTML(basename);
if(extension){
html+='<span class="extension">'+escapeHTML(extension)+'</span>';
}