mirror of https://github.com/Xhofe/alist
fix(onedrive): unable to operate if path contains `%` (close #1965)
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…
Reference in New Issue