diff --git a/public/javascripts/application.js b/public/javascripts/application.js index c514e8940..b90011a4f 100644 --- a/public/javascripts/application.js +++ b/public/javascripts/application.js @@ -880,7 +880,8 @@ $(function(){ } if(res.length==1){ - location.href = '/zipdown/download?file='+res[0].file;return; + var file = encodeURI(res[0].file).replace(/\+/g, '%2B'); + location.href = '/zipdown/download?file='+file;return; } document.getElementById('light').style.display='block';