From: foobar Date: Fri, 6 Jan 2006 00:35:40 +0000 (+0000) Subject: - Fixed bug #35906 (win32: mail() Date: header is not RFC compliant) X-Git-Tag: php-4.4.2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd2be9ac1faf1e9107ba153cd97dc3d0ab871d22;p=php - Fixed bug #35906 (win32: mail() Date: header is not RFC compliant) --- diff --git a/win32/sendmail.c b/win32/sendmail.c index 55868d68a4..af7631f7f9 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -713,7 +713,7 @@ int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders) zonem = (abs(_timezone) / 60) - (zoneh * 60); if(!xheaders || !strstr(headers_lc, "date:")){ - sprintf(header_buffer, "Date: %s, %02d %s %04d %02d:%02d:%02d %s%02d%02d\r\n", + sprintf(header_buffer, "Date: %3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d\r\n", days[tm->tm_wday], tm->tm_mday, months[tm->tm_mon],