MFB: - Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect)

This commit is contained in:
Felipe Pena 2008-07-11 13:53:09 +00:00
parent 0cd842e51b
commit 40e96d282d

View File

@ -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);
}