#45486 [Asn->Opn]: mb_send_mail(); header 'Content-Type: text/plain; charset=' parsing incorrect

From: Date: Fri, 11 Jul 2008 13:46:01 +0000
Subject: #45486 [Asn->Opn]: 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-126472@lists.php.net to get a copy of this message
ID: 45486 Updated by: jani@php.net Reported By: serovov at gmail dot com -Status: Assigned +Status: Open -Bug Type: Unknown/Other Function +Bug Type: mbstring related Operating System: all PHP Version: 5.2.6 Assigned To: felipe 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

« previous php.bugs (#126472) next »