#32313 [Fbk]: mb_decode_mimeheader drops <> encoded parts
| From: | moriyoshi@php.net | Date: | Fri, 18 Mar 2005 00:44:02 +0000 |
| Subject: | #32313 [Fbk]: mb_decode_mimeheader drops <> encoded parts | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-75451@lists.php.net to get a copy of this message | ||
ID: 32313
Updated by: moriyoshi@php.net
Reported By: mortoray at ecircle-ag dot com
Status: Feedback
Bug Type: mbstring related
Operating System: Windows2000
PHP Version: 4.3.10
New Comment:
Probably you are trying to show the result in your
browser. every <> and the enclosed string form a tag
that won't be visible.
Previous Comments:
------------------------------------------------------------------------
[2005-03-17 18:09:21] iliaa@php.net
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
------------------------------------------------------------------------
[2005-03-16 07:09:46] mortoray at ecircle-ag dot com
The snapshop provided does not contain an php_mbstring.dll, and thus
this function does not appear to be defined....
------------------------------------------------------------------------
[2005-03-16 00:45:44] sniper@php.net
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
------------------------------------------------------------------------
[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