note 50966 added to function.mb-encode-mimeheader

From: Date: Tue, 15 Mar 2005 09:20:00 +0000
Subject: note 50966 added to function.mb-encode-mimeheader
Groups: php.notes 
Request: Send a blank email to php-notes+get-86451@lists.php.net to get a copy of this message
At least for Q encoding, this function is unsafe and does not encode correctly. Raw characters which appear as RFC2047 sequences are simply left as is. Ex: mb_encode_mimeheader( '=?iso-8859-1?q?this=20is=20some=20text?=' ); returns '=?iso-8859-1?q?this=20is=20some=20text?=' The exact same string, which is obviously not the encoding for the source string. That is, mb_encode_mimeheader does not do any type of escaping. That is, the following condition is not always true: mb_decode_mimeheader( mb_encode_mimeheader( $text ) ) == $text ---- Manual Page -- http://www.php.net/manual/en/function.mb-encode-mimeheader.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50966 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50966&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50966&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50966&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50966&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50966&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50966&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86451) next »