From 81187dea363380051cb1a58b5803eb34e683b356 Mon Sep 17 00:00:00 2001 From: guange <8863824@gmail.com> Date: Wed, 24 Jun 2015 16:07:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E5=B8=A6+=E5=8F=B7=E7=9A=84=E4=BD=9C?= =?UTF-8?q?=E4=B8=9A=E6=97=A0=E6=B3=95=E6=89=93=E5=8C=85=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/application.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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';