Skip to content
Snippets Groups Projects
Commit a33dda3c authored by Bart Visscher's avatar Bart Visscher
Browse files

Fix double url decoding in fileDownloadPath function

parent 424062f4
No related branches found
No related tags found
No related merge requests found
......@@ -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={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment