note 73187 added to function.quoted-printable-decode
| From: | legolas558 at osu1 dot php dot net | Date: | Mon, 12 Feb 2007 18:32:59 +0000 |
| Subject: | note 73187 added to function.quoted-printable-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123288@lists.php.net to get a copy of this message | ||
Please note that in the below encode function there is a bug!
<?php
if (($c==0x3d) || ($c>=0x80) || ($c<0x20))
?>
$c should be checked against less or equal to encode spaces!
so the correct code is
<?php
if (($c==0x3d) || ($c>=0x80) || ($c<=0x20))
?>
Fix the code or post this note, please
----
Server IP: 80.241.173.254
Probable Submitter: 151.44.87.253
----
Manual Page -- http://www.php.net/manual/en/function.quoted-printable-decode.php
Edit -- https://master.php.net/note/edit/73187
Del: integrated -- https://master.php.net/note/delete/73187/integrated
Del: useless -- https://master.php.net/note/delete/73187/useless
Del: bad code -- https://master.php.net/note/delete/73187/bad+code
Del: spam -- https://master.php.net/note/delete/73187/spam
Del: non-english -- https://master.php.net/note/delete/73187/non-english
Del: in docs -- https://master.php.net/note/delete/73187/in+docs
Del: other reasons-- https://master.php.net/note/delete/73187
Reject -- https://master.php.net/note/reject/73187
Search -- https://master.php.net/manage/user-notes.php