X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fserver%2Fmodules%2Fimap%2Fserv_imap.c;h=43d1eff7ac8fa9ce23fb633f77dacf803c013ffb;hb=aa9b5f5703df6306f22168227edbfa6e13d9f9cf;hp=d9cbab2822474620346b2c97563b4bd72108d0fe;hpb=bffaaea7b264bbad0ff7d114955ab6a8419d3787;p=citadel.git diff --git a/citadel/server/modules/imap/serv_imap.c b/citadel/server/modules/imap/serv_imap.c index d9cbab282..43d1eff7a 100644 --- a/citadel/server/modules/imap/serv_imap.c +++ b/citadel/server/modules/imap/serv_imap.c @@ -629,7 +629,7 @@ void imap_authenticate(int num_parms, ConstStr *Params) { } if (!strcasecmp(Params[2].Key, "LOGIN")) { - size_t len = CtdlEncodeBase64(UsrBuf, "Username:", 9, 0); + size_t len = CtdlEncodeBase64(UsrBuf, "Username:", 9, BASE64_NO_LINEBREAKS); if (UsrBuf[len - 1] == '\n') { UsrBuf[len - 1] = '\0'; } @@ -641,7 +641,7 @@ void imap_authenticate(int num_parms, ConstStr *Params) { } if (!strcasecmp(Params[2].Key, "PLAIN")) { - // size_t len = CtdlEncodeBase64(UsrBuf, "Username:", 9, 0); + // size_t len = CtdlEncodeBase64(UsrBuf, "Username:", 9, BASE64_NO_LINEBREAKS); // if (UsrBuf[len - 1] == '\n') { // UsrBuf[len - 1] = '\0'; // } @@ -722,7 +722,7 @@ void imap_auth_login_user(long state) { case imap_as_expecting_username: StrBufDecodeBase64(Imap->Cmd.CmdBuf); CtdlLoginExistingUser(ChrPtr(Imap->Cmd.CmdBuf)); - size_t len = CtdlEncodeBase64(PWBuf, "Password:", 9, 0); + size_t len = CtdlEncodeBase64(PWBuf, "Password:", 9, BASE64_NO_LINEBREAKS); if (PWBuf[len - 1] == '\n') { PWBuf[len - 1] = '\0'; }