From: Markus Fischer Date: Thu, 13 Jun 2002 22:25:28 +0000 (+0000) Subject: - We don't need the check here because the regex makes sure we never have \r\n X-Git-Tag: php5_5_0~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4711e51ae496e2387ca626b311327114e3fff51;p=php - We don't need the check here because the regex makes sure we never have \r\n at the end of the header. --- diff --git a/win32/sendmail.c b/win32/sendmail.c index 3e5d253b24..abcd894d8f 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -649,12 +649,6 @@ int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders, char *m if (!addToHeader(&header_buffer, "%s\r\n", xheaders)) { goto PostHeader_outofmem; } - -len = strlen(header_buffer); - if ((len > 4)&&(header_buffer[len-4]=='\r')) { - header_buffer[len-2]='\0'; - } - } if (headers_lc) {