#32313 [Opn->Fbk]: mb_decode_mimeheader drops <> encoded parts
| From: | sniper@php.net | Date: | Tue, 15 Mar 2005 23:45:45 +0000 |
| Subject: | #32313 [Opn->Fbk]: mb_decode_mimeheader drops <> encoded parts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77022@lists.php.net to get a copy of this message | ||
ID: 32313
Updated by: sniper@php.net
Reported By: mortoray at ecircle-ag dot com
-Status: Open
+Status: Feedback
Bug Type: mbstring related
Operating System: Windows2000
PHP Version: 4.3.10
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2005-03-15 11:06:22] mortoray at ecircle-ag dot com
Description:
------------
mb_decode_mimeheader appears to be dropping parts of the input string
if encoded in angle brackets.
mb_encode_mimeheader also appears to drop these bracketed sections.
Reproduce code:
---------------
$text .= '=?iso-8859-1?q?this=20is=20some=20text?= <more after
space>';
print( mb_decode_mimeheader( $text ) );
Expected result:
----------------
this is some text <more after space>
Actual result:
--------------
this is some text
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=32313&edit=1