fix(onedrive): unable to operate if path contains %
(close #1965)
This commit is contained in:
parent
baebc2fbe9
commit
5ea8d62aa4
@ -42,6 +42,7 @@ var onedriveHostMap = map[string]Host{
|
|||||||
|
|
||||||
func (d *Onedrive) GetMetaUrl(auth bool, path string) string {
|
func (d *Onedrive) GetMetaUrl(auth bool, path string) string {
|
||||||
host, _ := onedriveHostMap[d.Region]
|
host, _ := onedriveHostMap[d.Region]
|
||||||
|
path = utils.EncodePath(path, true)
|
||||||
if auth {
|
if auth {
|
||||||
return host.Oauth
|
return host.Oauth
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user