"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
lib/rest: process HTML entities within XML
Koopa0681a5c86a37
diff --git a/lib/rest/rest.go b/lib/rest/rest.goindex e534b0d1e..316b9a77f 100644--- a/lib/rest/rest.go+++ b/lib/rest/rest.go@@ -167,6 +167,10 @@ func DecodeJSON(resp *http.Response, result interface{}) (err error) {func DecodeXML(resp *http.Response, result interface{}) (err error) {defer fs.CheckClose(resp.Body, &err)decoder := xml.NewDecoder(resp.Body)+ // MEGAcmd has included escaped HTML entities in its XML output, so we have to be able to+ // decode them.+ decoder.Strict = false+ decoder.Entity = xml.HTMLEntityreturn decoder.Decode(result)}