mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-23 13:54:04 +08:00
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 {
|
||||
host, _ := onedriveHostMap[d.Region]
|
||||
path = utils.EncodePath(path, true)
|
||||
if auth {
|
||||
return host.Oauth
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user