fix multi-select files download error when filename contains '+' (#571)
parent
802bcd8cbd
commit
7394f6b9bb
|
@ -30,7 +30,7 @@ func downloadHandler(c *fb.Context, w http.ResponseWriter, r *http.Request) (int
|
||||||
if len(names) != 0 {
|
if len(names) != 0 {
|
||||||
for _, name := range names {
|
for _, name := range names {
|
||||||
// Unescape the name.
|
// Unescape the name.
|
||||||
name, err := url.QueryUnescape(name)
|
name, err := url.QueryUnescape(strings.Replace(name, "+", "%2B", -1))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return http.StatusInternalServerError, err
|
return http.StatusInternalServerError, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue