1
mirror of https://github.com/rclone/rclone synced 2024-12-29 22:26:24 +01:00

onedrive: fix sometimes special chars in filenames not replaced

This commit is contained in:
Alex Chen 2018-09-14 21:38:55 +08:00 committed by GitHub
parent b3d8bc61ac
commit a288646419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{