"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
netstorage: stop a path starting with // moving the remote to another host GHSA-xqmq-v4wj-rw5m CVE-PENDING
Nick Craig-Wood4f28f4492cf5
diff --git a/backend/netstorage/netstorage.go b/backend/netstorage/netstorage.goindex cbc029ad9..b47eb40f2 100755--- a/backend/netstorage/netstorage.go+++ b/backend/netstorage/netstorage.go@@ -236,9 +236,9 @@ func NewFs(ctx context.Context, name, root string, m configmap.Mapper) (fs.Fs, eif err != nil {return nil, fmt.Errorf("couldn't parse URL %q: %w", opt.Endpoint, err)}- u, err := rest.URLJoin(base, rest.URLPathEscape(root))+ u, err := rest.URLJoinRoot(base, root)if err != nil {- return nil, fmt.Errorf("couldn't join URL %q and %q: %w", base.String(), root, err)+ return nil, err}client := fshttp.NewClient(ctx)