diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-04-26 17:35:12 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-04-26 17:35:12 +0200 |
commit | 0249a72caba9f1a4eeaf51f382a74fe61b66c284 (patch) | |
tree | bb272c3dbe57b3b2ec0bcb648fb3461668aa20c7 /core/js | |
parent | ebd82ee772ee32dc6fda37c377106f19a30922bf (diff) | |
download | nextcloud-server-0249a72caba9f1a4eeaf51f382a74fe61b66c284.tar.gz nextcloud-server-0249a72caba9f1a4eeaf51f382a74fe61b66c284.zip |
fix downloading of files in files app
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/js/js.js b/core/js/js.js index 12303d7dd91..84875ca162f 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -53,12 +53,13 @@ OC={ filePath:function(app,type,file){ var isCore=OC.coreApps.indexOf(app)!=-1; var link=OC.webroot; - if((file.substring(file.length-3) == 'php' || file.substring(file.length-3) == 'css') && !isCore){ + var splitted = file.split('?'); + if((splitted[0].substring(splitted[0].length-3) == 'php' || splitted[0].substring(splitted[0].length-3) == 'css') && !isCore){ link+='/?app=' + app + '&getfile='; if(type){ link+=encodeURI(type + '/'); } - link+= file; + link+= file + '?' + splitted[1]; }else if(file.substring(file.length-3) != 'php' && !isCore){ link=OC.appswebroot; link+='/'; |