CtdlEncodeBase64() - only add linebreaks if told to by the caller.
[citadel.git] / webcit-ng / admin_functions.c
index 4865b8c661d87663eeb04b0f1056b17e9435df35..1cd8b482c922f63dc0e32e7fd69b9107dcc02db9 100644 (file)
@@ -27,7 +27,7 @@ void try_login(struct http_transaction *h, struct ctdlsession *c) {
        extract_token(password, h->request_body, 1, '|', sizeof password);
 
        snprintf(buf, sizeof buf, "%s:%s", username, password);
-       CtdlEncodeBase64(auth, buf, strlen(buf), 0);
+       CtdlEncodeBase64(auth, buf, strlen(buf), BASE64_NO_LINEBREAKS);
 
        syslog(LOG_DEBUG, "try_login(username='%s',password=(%d bytes))", username, (int) strlen(password));