SOURCES: php-mail.patch - improve To: headers error message

glen glen at pld-linux.org
Mon Jun 19 12:01:18 CEST 2006


Author: glen                         Date: Mon Jun 19 10:01:18 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- improve To: headers error message

---- Files affected:
SOURCES:
   php-mail.patch (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/php-mail.patch
diff -u SOURCES/php-mail.patch:1.13 SOURCES/php-mail.patch:1.14
--- SOURCES/php-mail.patch:1.13	Mon Jun 19 11:58:51 2006
+++ SOURCES/php-mail.patch	Mon Jun 19 12:01:12 2006
@@ -37,7 +37,7 @@
 +    /* search for to, cc or bcc headers */
 +    if (headers != NULL) {
 +        if (strncasecmp(headers, "to:", sizeof("to:") - 1) == 0 || strcasestr(headers, "\nto:")) {
-+            zend_error(E_WARNING, "To: headers aren't allowed in the additional_headers parameter. Mail not sent.");
++            zend_error(E_WARNING, "To: headers aren't allowed in the additional_headers parameter. Use $to parameter for that. Mail not sent.");
 +            RETURN_FALSE;
 +        }
 +    }
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-mail.patch?r1=1.13&r2=1.14&f=u



More information about the pld-cvs-commit mailing list