From e1ef6907844fec4f0b126b62c7772d62b45122b3 Mon Sep 17 00:00:00 2001 From: URenko <18209292+URenko@users.noreply.github.com> Date: Sun, 1 Oct 2023 16:58:29 +0800 Subject: [PATCH] fix(terabox): encode parameters for `filemanager` api (#5308) --- drivers/terabox/util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/terabox/util.go b/drivers/terabox/util.go index c162773e..0a4e7879 100644 --- a/drivers/terabox/util.go +++ b/drivers/terabox/util.go @@ -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) }