mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 19:37:41 +08:00
fix(onedrive): unable to operate if path contains % (close #1965)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user