Skip to content

Commit

Permalink
fix(terabox): encode parameters for filemanager api (#5308)
Browse files Browse the repository at this point in the history
  • Loading branch information
URenko committed Oct 1, 2023
1 parent 4024050 commit e1ef690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/terabox/util.go
Expand Up @@ -233,7 +233,7 @@ func (d *Terabox) manage(opera string, filelist interface{}) ([]byte, error) {
if err != nil {
return nil, err
}
data := fmt.Sprintf("async=0&filelist=%s&ondup=newcopy", string(marshal))
data := fmt.Sprintf("async=0&filelist=%s&ondup=newcopy", encodeURIComponent(string(marshal)))
return d.post("/api/filemanager", params, data, nil)
}

Expand Down

0 comments on commit e1ef690

Please sign in to comment.