dxbjavid opened a new pull request, #398: URL: https://github.com/apache/commons-net/pull/398
DotTerminatedMessageWriter starts in NOTHING_SPECIAL_STATE, so a period at the very start of the message isn't doubled even though it's the start of a line. A body beginning with "." then CRLF therefore ends the data phase early (SMTP DATA, NNTP POST, POP3), letting the following text be read as protocol commands. Initialize the state to LAST_WAS_NL_STATE so the message start is treated as a line start, matching the reader's un-stuffing. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
