mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
MFB: - Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect)
This commit is contained in:
parent
0cd842e51b
commit
40e96d282d
@ -3916,7 +3916,7 @@ PHP_FUNCTION(mb_send_mail)
|
|||||||
if (strcasecmp(param_name, "charset") == 0) {
|
if (strcasecmp(param_name, "charset") == 0) {
|
||||||
enum mbfl_no_encoding _tran_cs = tran_cs;
|
enum mbfl_no_encoding _tran_cs = tran_cs;
|
||||||
|
|
||||||
charset = php_strtok_r(NULL, "= ", &tmp);
|
charset = php_strtok_r(NULL, "= \"", &tmp);
|
||||||
if (charset != NULL) {
|
if (charset != NULL) {
|
||||||
_tran_cs = mbfl_name2no_encoding(charset);
|
_tran_cs = mbfl_name2no_encoding(charset);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user