mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +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) {
|
||||
enum mbfl_no_encoding _tran_cs = tran_cs;
|
||||
|
||||
charset = php_strtok_r(NULL, "= ", &tmp);
|
||||
charset = php_strtok_r(NULL, "= \"", &tmp);
|
||||
if (charset != NULL) {
|
||||
_tran_cs = mbfl_name2no_encoding(charset);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user