Fix double url decoding in fileDownloadPath function

This commit is contained in:
Bart Visscher 2012-09-29 18:10:19 +02:00
parent 424062f4af
commit a33dda3c65
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ t.cache={};
* @return string
*/
function fileDownloadPath(dir, file) {
return OC.filePath('files', 'ajax', 'download.php')+encodeURIComponent('?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir));
return OC.filePath('files', 'ajax', 'download.php')+'&files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
}
var OC={