Trim first line of POP3 response to get rid of CR, if any.

This commit is contained in:
Vincent Richard 2013-02-13 10:03:18 +01:00
parent feabba4470
commit fd5f0c0707

View File

@ -324,13 +324,13 @@ bool POP3Response::stripFirstLine
if (end != string::npos)
{
if (firstLine) *firstLine = buffer.substr(0, end);
if (firstLine) *firstLine = utility::stringUtils::trim(buffer.substr(0, end));
result = buffer.substr(end + 1);
return true;
}
else
{
if (firstLine) *firstLine = buffer;
if (firstLine) *firstLine = utility::stringUtils::trim(buffer);
result = "";
return false;
}