Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

jottacloud: add encoding of percent character to default backend encoding

albertonycb9bdf629c9d
diff --git a/backend/jottacloud/jottacloud.go b/backend/jottacloud/jottacloud.go
index 5a5ed6249..4b7628183 100644
--- a/backend/jottacloud/jottacloud.go
+++ b/backend/jottacloud/jottacloud.go
@@ -166,7 +166,8 @@ func init() {
// Also: '*', '/', ':', '<', '>', '?', '\"', '\x00', '|'
Default: (encoder.Display |
encoder.EncodeWin | // :?"*<>|
- encoder.EncodeInvalidUtf8),
+ encoder.EncodeInvalidUtf8 |
+ encoder.EncodePercent),
}}...),
})
}
diff --git a/docs/content/jottacloud.md b/docs/content/jottacloud.md
index 2eb0a9d1a..d6349fd8b 100644
--- a/docs/content/jottacloud.md
+++ b/docs/content/jottacloud.md
@@ -371,6 +371,7 @@ the following characters are also replaced:
| > | 0x3E | > |
| ? | 0x3F | ? |
| \| | 0x7C | | |
+| % | 0x25 | % |
Invalid UTF-8 bytes will also be [replaced](/overview/#invalid-utf8),
as they can't be used in XML strings.