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

From: Date: Fri, 11 Jul 2008 13:45:52 +0000
Subject: #45486 [Opn->Asn]: 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-126471@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: Assigned Bug Type: Unknown/Other Function Operating System: all PHP Version: 5.2.6 -Assigned To: +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 (#126471) next »