GH 109: Bug in SMTPClientSession::loginUsingPlain

- fixed GH# 109: Bug in Poco::Net::SMTPClientSession::loginUsingPlain
This commit is contained in:
aleks-f
2013-02-27 12:40:57 -06:00
parent 2d87e2bd84
commit 4e3ff72803
2 changed files with 2 additions and 1 deletions

View File

@@ -15,6 +15,7 @@ Release 1.5.2 (2013-03-??)
- fixed GH #110: WebSocket accept() fails when Connection header contains multiple tokens - fixed GH #110: WebSocket accept() fails when Connection header contains multiple tokens
- fixed GH# 71: WebSocket and broken Timeouts (POCO_BROKEN_TIMEOUTS) - fixed GH# 71: WebSocket and broken Timeouts (POCO_BROKEN_TIMEOUTS)
- fixed a warning in Poco/Crypto/OpenSSLInitializer.h - fixed a warning in Poco/Crypto/OpenSSLInitializer.h
- fixed GH# 109: Bug in Poco::Net::SMTPClientSession::loginUsingPlain
Release 1.5.1 (2013-01-11) Release 1.5.1 (2013-01-11)
========================== ==========================

View File

@@ -230,7 +230,7 @@ void SMTPClientSession::loginUsingPlain(const std::string& username, const std::
{ {
std::ostringstream credentialsBase64; std::ostringstream credentialsBase64;
Base64Encoder credentialsEncoder(credentialsBase64); Base64Encoder credentialsEncoder(credentialsBase64);
credentialsEncoder << username << '\0' << password; credentialsEncoder << '\0' << username << '\0' << password;
credentialsEncoder.close(); credentialsEncoder.close();
std::string response; std::string response;