iliaa Wed Jan 19 13:54:48 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/win32 sendmail.c Log: MFH: Stricter cc header check. http://cvs.php.net/diff.php/php-src/win32/sendmail.c?r1=1.59.2.1&r2=1.59.2.2&ty=u Index: php-src/win32/sendmail.c diff -u php-src/win32/sendmail.c:1.59.2.1 php-src/win32/sendmail.c:1.59.2.2 --- php-src/win32/sendmail.c:1.59.2.1 Wed Jan 19 12:38:32 2005 +++ php-src/win32/sendmail.c Wed Jan 19 13:54:48 2005 @@ -17,7 +17,7 @@ * */ -/* $Id: sendmail.c,v 1.59.2.1 2005/01/19 17:38:32 sniper Exp $ */ +/* $Id: sendmail.c,v 1.59.2.2 2005/01/19 18:54:48 iliaa Exp $ */ #include "php.h" /*php specific */ #include <stdio.h> @@ -485,7 +485,7 @@ efree(tempMailTo); } /* Send mail to all Cc rcpt's */ - else if (headers && (pos1 = strstr(headers_lc, "cc:")) && ((pos1 == headers_lc) || iscntrl(*(pos1-1)))) { + else if (headers && (pos1 = strstr(headers_lc, "cc:")) && ((pos1 == headers_lc) || (*(pos1-1) == '\n'))) { /* Real offset is memaddress from the original headers + difference of * string found in the lowercase headrs + 3 characters to jump over * the cc: */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php