Patch disable-checking-empty-mail-headers.patch for Mail related Bug #69874
Patch version 2015-06-18 14:18 UTC
Return to Bug #69874 |
Download this patch
Patch Revisions:
Developer: buglloc@yandex.ru
diff --git a/ext/standard/mail.c b/ext/standard/mail.c
index a9046ce..93e8fcd 100644
--- a/ext/standard/mail.c
+++ b/ext/standard/mail.c
@@ -117,7 +117,7 @@ PHP_FUNCTION(mail)
MAIL_ASCIIZ_CHECK(to, to_len);
MAIL_ASCIIZ_CHECK(subject, subject_len);
MAIL_ASCIIZ_CHECK(message, message_len);
- if (headers) {
+ if (headers && headers_len > 0) {
MAIL_ASCIIZ_CHECK(headers->val, headers->len);
headers_trimmed = php_trim(headers, NULL, 0, 2);
}
|