fix(baidu_netdisk): encode path for create (close #2690)

pull/2701/head
Noah Hsu 2022-12-13 17:57:41 +08:00
parent 179d285564
commit 3ee45c69a7
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ func (d *BaiduNetdisk) create(path string, size int64, isdir int, uploadid, bloc
params := map[string]string{
"method": "create",
}
data := fmt.Sprintf("path=%s&size=%d&isdir=%d", path, size, isdir)
data := fmt.Sprintf("path=%s&size=%d&isdir=%d", encodeURIComponent(path), size, isdir)
if uploadid != "" {
data += fmt.Sprintf("&uploadid=%s&block_list=%s", uploadid, block_list)
}