]> git.pld-linux.org Git - packages/php.git/commitdiff
- still allow CC and BCC in additional headers
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 19 Jun 2006 09:58:51 +0000 (09:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-mail.patch -> 1.13

php-mail.patch

index ea37e1d264df2ddb5bb28f09eac1d73ca1060a2d..0d0694adbc1b308a9715adbd410d08fe73f3ba0e 100644 (file)
@@ -19,7 +19,7 @@
  #if HAVE_SENDMAIL
  #ifdef PHP_WIN32
  #include "win32/sendmail.h"
-@@ -104,6 +109,35 @@
+@@ -104,6 +109,25 @@
                return;
        }
  
 +            zend_error(E_WARNING, "To: headers aren't allowed in the additional_headers parameter. Mail not sent.");
 +            RETURN_FALSE;
 +        }
-+
-+        if (strncasecmp(headers, "cc:", sizeof("cc:") - 1) == 0 || strcasestr(headers, "\ncc:")) {
-+            zend_error(E_WARNING, "CC: headers aren't allowed in the additional_headers parameter. Mail not sent.");
-+            RETURN_FALSE;
-+        }
-+
-+        if (strncasecmp(headers, "bcc:", sizeof("bcc:") - 1) == 0 || strcasestr(headers, "\nbcc:")) {
-+            zend_error(E_WARNING, "BCC: headers aren't allowed in the additional_headers parameter. Mail not sent.");
-+            RETURN_FALSE;
-+        }
 +    }
 +
        if (to_len > 0) {
                to_r = estrndup(to, to_len);
                for (; to_len; to_len--) {
-@@ -196,8 +230,42 @@
+@@ -196,8 +220,42 @@
                        return 0;
                }
  #endif
This page took 0.037932 seconds and 4 git commands to generate.