]> granicus.if.org Git - curl/commit
smtp: fix processing of initial dot in data
authorPatrick Monnerat <patrick@monnerat.net>
Mon, 12 Feb 2018 15:43:15 +0000 (16:43 +0100)
committerPatrick Monnerat <patrick@monnerat.net>
Mon, 12 Feb 2018 15:43:15 +0000 (16:43 +0100)
commit62cf2d180ed77bb977acf5d8b348d4431256638f
tree38226912efdc7c236a670c2f865c60e51617d349
parent3f6051f4ed2195a24adbc29036ee5ee0ef00b1e9
smtp: fix processing of initial dot in data

RFC 5321 4.1.1.4 specifies the CRLF terminating the DATA command
should be taken into account when chasing the <CRLF>.<CRLF> end marker.
Thus a leading dot character in data is also subject to escaping.

Tests 911 and test server are adapted to this situation.
New tests 951 and 952 check proper handling of initial dot in data.

Closes #2304
lib/smtp.c
tests/data/Makefile.inc
tests/data/test911
tests/data/test951 [new file with mode: 0644]
tests/data/test952 [new file with mode: 0644]
tests/ftpserver.pl