mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
This should fix the multiple-line problem.
This commit is contained in:
parent
efdd39207c
commit
9a2726e208
@ -493,9 +493,12 @@ int Ack()
|
|||||||
|
|
||||||
/* Check for newline */
|
/* Check for newline */
|
||||||
Index += rlen;
|
Index += rlen;
|
||||||
if ((buf[Received - 2] != '\r') || (buf[Received - 1] != '\n'))
|
|
||||||
|
if ((buf[Received - 4] == ' ' && buf[Received - 3] == '-') ||
|
||||||
|
(buf[Received - 2] != '\r') || (buf[Received - 1] != '\n'))
|
||||||
/* err_msg fprintf(stderr,"Incomplete server message. Awaiting CRLF\n"); */
|
/* err_msg fprintf(stderr,"Incomplete server message. Awaiting CRLF\n"); */
|
||||||
goto again; /* Incomplete data. Line must be terminated by CRLF */
|
goto again; /* Incomplete data. Line must be terminated by CRLF
|
||||||
|
And not contain a space followed by a '-' */
|
||||||
|
|
||||||
if (buf[0] > '3')
|
if (buf[0] > '3')
|
||||||
return (SMTP_SERVER_ERROR);
|
return (SMTP_SERVER_ERROR);
|
||||||
|
Loading…
Reference in New Issue
Block a user