#45486 [Opn->Csd]: mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect
| From: | felipe@php.net | Date: | Fri, 11 Jul 2008 13:49:06 +0000 |
| Subject: | #45486 [Opn->Csd]: mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-126473@lists.php.net to get a copy of this message | ||
ID: 45486
Updated by: felipe@php.net
Reported By: serovov at gmail dot com
-Status: Open
+Status: Closed
Bug Type: mbstring related
Operating System: *
PHP Version: 5.2.6
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-07-11 11:33:22] serovov at gmail dot com
Description:
------------
When executing mb_send_mail with headers
<?
$headers = 'Content-Type: text/plain; charset="UTF-8"';
mb_send_mail('name@example.org', 'The Bug', 'Bla bla bla', $headers);
?>
Error: "Unsupported charset ""UTF-8"" - will be regarded as ascii"
But when i pass charset=UTF-8 its works Okey...
Reproduce code:
---------------
<?
$headers = 'Content-Type: text/plain; charset="UTF-8"';
mb_send_mail('name@example.org', 'The Bug', 'Bla bla bla', $headers);
?>
Expected result:
----------------
ignore quotes in Content-Type: text/plain; charset="UTF-8"
Actual result:
--------------
Error: "Unsupported charset ""UTF-8"" - will be regarded as ascii"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45486&edit=1