CtdlEncodeBase64() - only add linebreaks if told to by the caller.
[citadel.git] / webcit / messages.c
index ab3602f2a6c76dc55a3a373c2184d4359223a6b6..d0ad4d67c9451f927af3835e41af3ba421def87c 100644 (file)
@@ -945,7 +945,7 @@ void post_mime_to_server(void) {
                                break;
                        }
                        syslog(LOG_DEBUG, "Attachment: raw len %d", StrLength(att->Data));
-                       encoded_strlen = CtdlEncodeBase64(encoded, ChrPtr(att->Data), StrLength(att->Data), 1);
+                       encoded_strlen = CtdlEncodeBase64(encoded, ChrPtr(att->Data), StrLength(att->Data), BASE64_YES_LINEBREAKS);
                        syslog(LOG_DEBUG, "Attachment: encoded len %d", encoded_strlen);
 
                        serv_printf("--%s", top_boundary);