fix multi-select files download error when filename contains '+' (#571)

This commit is contained in:
helloray 2019-01-01 09:39:45 +08:00 committed by 1138-4EB
parent 802bcd8cbd
commit 7394f6b9bb
1 changed files with 1 additions and 1 deletions

View File

@ -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
}