mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.3'
This commit is contained in:
@@ -4202,10 +4202,8 @@ PHP_FUNCTION(mb_send_mail)
|
|||||||
size_t i;
|
size_t i;
|
||||||
char *to_r = NULL;
|
char *to_r = NULL;
|
||||||
char *force_extra_parameters = INI_STR("mail.force_extra_parameters");
|
char *force_extra_parameters = INI_STR("mail.force_extra_parameters");
|
||||||
struct {
|
bool suppress_content_type = false;
|
||||||
int cnt_type:1;
|
bool suppress_content_transfer_encoding = false;
|
||||||
int cnt_trans_enc:1;
|
|
||||||
} suppressed_hdrs = { 0, 0 };
|
|
||||||
|
|
||||||
char *p;
|
char *p;
|
||||||
enum mbfl_no_encoding;
|
enum mbfl_no_encoding;
|
||||||
@@ -4288,7 +4286,7 @@ PHP_FUNCTION(mb_send_mail)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
suppressed_hdrs.cnt_type = 1;
|
suppress_content_type = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((s = zend_hash_str_find(&ht_headers, "content-transfer-encoding", sizeof("content-transfer-encoding") - 1))) {
|
if ((s = zend_hash_str_find(&ht_headers, "content-transfer-encoding", sizeof("content-transfer-encoding") - 1))) {
|
||||||
@@ -4308,7 +4306,7 @@ PHP_FUNCTION(mb_send_mail)
|
|||||||
body_enc = &mbfl_encoding_8bit;
|
body_enc = &mbfl_encoding_8bit;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
suppressed_hdrs.cnt_trans_enc = 1;
|
suppress_content_transfer_encoding = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* To: */
|
/* To: */
|
||||||
@@ -4393,7 +4391,7 @@ PHP_FUNCTION(mb_send_mail)
|
|||||||
empty = false;
|
empty = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!suppressed_hdrs.cnt_type) {
|
if (!suppress_content_type) {
|
||||||
if (!empty) {
|
if (!empty) {
|
||||||
smart_str_appendl(&str, line_sep, line_sep_len);
|
smart_str_appendl(&str, line_sep, line_sep_len);
|
||||||
}
|
}
|
||||||
@@ -4407,7 +4405,7 @@ PHP_FUNCTION(mb_send_mail)
|
|||||||
empty = false;
|
empty = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!suppressed_hdrs.cnt_trans_enc) {
|
if (!suppress_content_transfer_encoding) {
|
||||||
if (!empty) {
|
if (!empty) {
|
||||||
smart_str_appendl(&str, line_sep, line_sep_len);
|
smart_str_appendl(&str, line_sep, line_sep_len);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user