From 5ea8d62aa4fff9e20b76d6b68f1ca47889283cd3 Mon Sep 17 00:00:00 2001 From: Noah Hsu Date: Tue, 11 Oct 2022 14:21:58 +0800 Subject: [PATCH] fix(onedrive): unable to operate if path contains `%` (close #1965) --- drivers/onedrive/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/onedrive/util.go b/drivers/onedrive/util.go index 2376e7f2..32cbfce9 100644 --- a/drivers/onedrive/util.go +++ b/drivers/onedrive/util.go @@ -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 }