]> git.pld-linux.org Git - packages/php.git/commitdiff
- improve To: headers error message
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 19 Jun 2006 10:01:12 +0000 (10:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-mail.patch -> 1.14

php-mail.patch

index 0d0694adbc1b308a9715adbd410d08fe73f3ba0e..79ffe1322f0650855a0f49034bf557a1575d3b66 100644 (file)
@@ -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;
 +        }
 +    }
This page took 0.047315 seconds and 4 git commands to generate.