From 7394f6b9bbe554d03a4e31a6bb03db2991097750 Mon Sep 17 00:00:00 2001 From: helloray Date: Tue, 1 Jan 2019 09:39:45 +0800 Subject: [PATCH] fix multi-select files download error when filename contains '+' (#571) --- lib/http/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http/download.go b/lib/http/download.go index d2143646..48c0a494 100644 --- a/lib/http/download.go +++ b/lib/http/download.go @@ -30,7 +30,7 @@ func downloadHandler(c *fb.Context, w http.ResponseWriter, r *http.Request) (int if len(names) != 0 { for _, name := range names { // Unescape the name. - name, err := url.QueryUnescape(name) + name, err := url.QueryUnescape(strings.Replace(name, "+", "%2B", -1)) if err != nil { return http.StatusInternalServerError, err }