fix(onedrive): unable to operate if path contains `%` (close #1965)

pull/2046/head
Noah Hsu 2022-10-11 14:21:58 +08:00
parent baebc2fbe9
commit 5ea8d62aa4
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ var onedriveHostMap = map[string]Host{
func (d *Onedrive) GetMetaUrl(auth bool, path string) string {
host, _ := onedriveHostMap[d.Region]
path = utils.EncodePath(path, true)
if auth {
return host.Oauth
}