"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
opendrive: fix transfer of files with + and & in - fixes #2657
Nick Craig-Woode8d0a363fc71
diff --git a/backend/opendrive/opendrive.go b/backend/opendrive/opendrive.goindex 24673c882..352220e14 100644--- a/backend/opendrive/opendrive.go+++ b/backend/opendrive/opendrive.go@@ -6,6 +6,7 @@ import ("io""mime/multipart""net/http"+ "net/url""path""strconv""strings"@@ -1082,7 +1083,7 @@ func (o *Object) readMetaData() (err error) {err = o.fs.pacer.Call(func() (bool, error) {opts := rest.Opts{Method: "GET",- Path: "/folder/itembyname.json/" + o.fs.session.SessionID + "/" + directoryID + "?name=" + rest.URLPathEscape(replaceReservedChars(leaf)),+ Path: "/folder/itembyname.json/" + o.fs.session.SessionID + "/" + directoryID + "?name=" + url.QueryEscape(replaceReservedChars(leaf)),}resp, err = o.fs.srv.CallJSON(&opts, nil, &folderList)return o.fs.shouldRetry(resp, err)