CtdlEncodeBase64() - only add linebreaks if told to by the caller.
[citadel.git] / citadel / server / modules / wiki / serv_wiki.c
index 427c8a2c45abb71fcb53ac354fd299872ebe2714..75238f8524fb97ffcc7b738a35304398cdb12e74 100644 (file)
@@ -307,7 +307,7 @@ int wiki_upload_beforesave(struct CtdlMessage *msg, struct recptypes *recp) {
                                           CC->user.fullname,
                                           CtdlGetConfigStr("c_nodename"));
 
-                       memolen = CtdlEncodeBase64(encoded_memo, memo, memolen, 0);
+                       memolen = CtdlEncodeBase64(encoded_memo, memo, memolen, BASE64_YES_LINEBREAKS);
 
                        StrBufAppendBufPlain(NewMsgText, HKEY("--"), 0);
                        StrBufAppendBufPlain(NewMsgText, boundary, -1, 0);