From 4e3ff72803a3887861cfbf621e9c47738421e255 Mon Sep 17 00:00:00 2001 From: aleks-f Date: Wed, 27 Feb 2013 12:40:57 -0600 Subject: [PATCH] GH 109: Bug in SMTPClientSession::loginUsingPlain - fixed GH# 109: Bug in Poco::Net::SMTPClientSession::loginUsingPlain --- CHANGELOG | 1 + Net/src/SMTPClientSession.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index f122fd39e..41b60216f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -15,6 +15,7 @@ Release 1.5.2 (2013-03-??) - fixed GH #110: WebSocket accept() fails when Connection header contains multiple tokens - fixed GH# 71: WebSocket and broken Timeouts (POCO_BROKEN_TIMEOUTS) - fixed a warning in Poco/Crypto/OpenSSLInitializer.h +- fixed GH# 109: Bug in Poco::Net::SMTPClientSession::loginUsingPlain Release 1.5.1 (2013-01-11) ========================== diff --git a/Net/src/SMTPClientSession.cpp b/Net/src/SMTPClientSession.cpp index f87e37d98..5c22420f4 100644 --- a/Net/src/SMTPClientSession.cpp +++ b/Net/src/SMTPClientSession.cpp @@ -230,7 +230,7 @@ void SMTPClientSession::loginUsingPlain(const std::string& username, const std:: { std::ostringstream credentialsBase64; Base64Encoder credentialsEncoder(credentialsBase64); - credentialsEncoder << username << '\0' << password; + credentialsEncoder << '\0' << username << '\0' << password; credentialsEncoder.close(); std::string response;