CtdlEncodeBase64() - only add linebreaks if told to by the caller.
[citadel.git] / citadel / server / modules / bio / serv_bio.c
index 6ccce90c1eddb0ebbb3b46d4a568cd664be3a055..738180893febab266d4933eba7005941341924ae 100644 (file)
@@ -96,7 +96,7 @@ void import_one_bio_file(char *username, long usernum, char *path) {
                        char *encoded_data = malloc((data_length * 2) + 100);
                        if (encoded_data) {
                                sprintf(encoded_data, "Content-type: text/plain; charset=UTF-8\nContent-transfer-encoding: base64\n\n");
-                               CtdlEncodeBase64(&encoded_data[strlen(encoded_data)], unencoded_data, data_length, 1);
+                               CtdlEncodeBase64(&encoded_data[strlen(encoded_data)], unencoded_data, data_length, BASE64_YES_LINEBREAKS);
 
                                char userconfigroomname[ROOMNAMELEN];
                                struct ctdluser usbuf;