From a2886464192ae83ef79948a834986193b5c5354a Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Fri, 14 Sep 2018 21:38:55 +0800 Subject: [PATCH] onedrive: fix sometimes special chars in filenames not replaced --- backend/onedrive/onedrive.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/onedrive/onedrive.go b/backend/onedrive/onedrive.go index ab06f4a5d..fbfef8aa5 100644 --- a/backend/onedrive/onedrive.go +++ b/backend/onedrive/onedrive.go @@ -1261,7 +1261,7 @@ func (o *Object) createUploadSession(modTime time.Time) (response *api.CreateUpl opts = rest.Opts{ Method: "POST", RootURL: rootURL, - Path: "/" + drive + "/items/" + id + ":/" + rest.URLPathEscape(leaf) + ":/createUploadSession", + Path: "/" + drive + "/items/" + id + ":/" + rest.URLPathEscape(replaceReservedChars(leaf)) + ":/createUploadSession", } } else { opts = rest.Opts{