iliaa Wed Jan 19 13:54:57 2005 EDT
Modified files: (Branch: PHP_4_3)
/php-src/win32 sendmail.c
Log:
MFH: Stricter cc header check
http://cvs.php.net/diff.php/php-src/win32/sendmail.c?r1=1.47.2.9&r2=1.47.2.10&ty=u
Index: php-src/win32/sendmail.c
diff -u php-src/win32/sendmail.c:1.47.2.9 php-src/win32/sendmail.c:1.47.2.10
--- php-src/win32/sendmail.c:1.47.2.9 Wed Jan 19 12:38:41 2005
+++ php-src/win32/sendmail.c Wed Jan 19 13:54:57 2005
@@ -17,7 +17,7 @@
*
*/
-/* $Id: sendmail.c,v 1.47.2.9 2005/01/19 17:38:41 sniper Exp $ */
+/* $Id: sendmail.c,v 1.47.2.10 2005/01/19 18:54:57 iliaa Exp $ */
#include "php.h" /*php specific */
#include <stdio.h>
@@ -462,7 +462,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