#45486 [NEW]: mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect
| From: | serovov at gmail dot com | Date: | Fri, 11 Jul 2008 11:33:22 +0000 |
| Subject: | #45486 [NEW]: mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-126467@lists.php.net to get a copy of this message | ||
From: serovov at gmail dot com
Operating system: all
PHP version: 5.2.6
PHP Bug Type: Unknown/Other Function
Bug description: mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing
incorrect
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 bug report at http://bugs.php.net/?id=45486&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45486&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45486&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45486&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45486&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=45486&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45486&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45486&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45486&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45486&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45486&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=45486&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=45486&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45486&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45486&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45486&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45486&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45486&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45486&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45486&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45486&r=mysqlcfg