iliaa           Wed Jan 19 13:54:23 2005 EDT

  Modified files:              
    /php-src/win32      sendmail.c 
  Log:
  Stricter cc header check.
  
  
http://cvs.php.net/diff.php/php-src/win32/sendmail.c?r1=1.60&r2=1.61&ty=u
Index: php-src/win32/sendmail.c
diff -u php-src/win32/sendmail.c:1.60 php-src/win32/sendmail.c:1.61
--- php-src/win32/sendmail.c:1.60       Wed Jan 19 12:38:20 2005
+++ php-src/win32/sendmail.c    Wed Jan 19 13:54:23 2005
@@ -17,7 +17,7 @@
  *
  */
 
-/* $Id: sendmail.c,v 1.60 2005/01/19 17:38:20 sniper Exp $ */
+/* $Id: sendmail.c,v 1.61 2005/01/19 18:54:23 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

Reply via email to