Bug #77147 [Asn->Csd]: iconv_mime_decode_headers ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag

From: Date: Wed, 14 Nov 2018 14:01:14 +0000
Subject: Bug #77147 [Asn->Csd]: iconv_mime_decode_headers ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217954@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77147&edit=1 ID: 77147 Updated by: cmb@php.net Reported by: shafer_w2002 at yahoo dot com Summary: iconv_mime_decode_headers ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag -Status: Assigned +Status: Closed Type: Bug Package: ICONV related Operating System: N/A PHP Version: 7.1.24 Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=a56cdd0a824d439920548aaeae757cb2341bd4ec Log: Fix #77147: Fix for 60494 ignores ICONV_MIME_DECODE_CONTINUE_ON_ERROR Previous Comments: ------------------------------------------------------------------------ [2018-11-13 22:42:40] shafer_w2002 at yahoo dot com Description: ------------ The fix for bug https://bugs.php.net/bug.php?id=60494 ignores the ICONV_MIME_DECODE_CONTINUE_ON_ERROR flag and false the parse. Prior to 7.1.22 parsing headers with erogenous characters worked fine, or as good as you were going to get anyway. The previous behavior should be respected (ignoring these broken chars) when ICONV_MIME_DECODE_CONTINUE_ON_ERROR is set, as per the php manual. Test script: --------------- <?php $string = <<<EOF Feedback-ID: 014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1� EOF; $headers = iconv_mime_decode_headers($string, ICONV_MIME_DECODE_CONTINUE_ON_ERROR); print_r($headers); Expected result: ---------------- Array ( [Feedback-ID] => 014a93e3-1f5e-4df6-b347-6b59f0f746b8:b5891053-55d1-45bc-a0b5-47a7a9b59687:email:epslh1 ) Actual result: -------------- false ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77147&edit=1

« previous php.bugs (#217954) next »