From: Felipe Pena Date: Fri, 11 Jul 2008 13:53:09 +0000 (+0000) Subject: MFB: - Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset... X-Git-Tag: php-5.3.0alpha1~395 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40e96d282d0397835d5daf0a3e6f26f85b4bf5e0;p=php MFB: - Fixed bug #45486 (mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect) --- diff --git a/ext/mbstring/mbstring.c b/ext/mbstring/mbstring.c index 4f67efc678..7cc1b1d87a 100644 --- a/ext/mbstring/mbstring.c +++ b/ext/mbstring/mbstring.c @@ -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); }