jottacloud: use lib/encoder

This commit is contained in:
Fabian Möller
2019-09-30 14:05:49 +01:00
committed by Nick Craig-Wood
parent 69c51325bb
commit 4837bc3546
5 changed files with 32 additions and 113 deletions
+3
View File
@@ -110,8 +110,11 @@ const GoogleCloudStorage = encoder.MultiEncoder(
// JottaCloud is the encoding used by the jottacloud backend
//
// Encode invalid UTF-8 bytes as xml doesn't handle them properly.
//
// Also: '*', '/', ':', '<', '>', '?', '\"', '\x00', '|'
const JottaCloud = encoder.MultiEncoder(
uint(Display) |
encoder.EncodeWin | // :?"*<>|
encoder.EncodeInvalidUtf8)
// Koofr is the encoding used by the koofr backend