|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-04-29 06:40 UTC] jmoore@php.net
[2001-05-05 04:40 UTC] vlad@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 02:00:01 2025 UTC |
quoted_printable_decode() and imap_qprint() decodes control codes aswell. This, I assume, is not supposed to happen. Also, these functions happily translate anything with two characters after the = sign (like =EV in =EVIL), which they shouldn't. Example: $foo="This is =00=01 =E4 \"=20\" =21 =ev =FE string."; echo "Quoting string \"".$foo."\"\n"; echo "quoted_printable_decode: \"".quoted_printable_decode($foo)."\"\n"; echo "preg_replace: \"".preg_replace("/\=([2-9A-Fa-f])([0-9A-Fa-f])/e", "''.chr(hexdec('\\1\\2')).''", $foo)."\"\n"; Would result in: Quoting string "This is =00=01 =E4 =2B "=20" =21 =ev =FE string." quoted_printable_decode: "This is ? + " " ! ? ? string." preg_replace: "This is =00=01 ? + " " ! =ev ? string." Am I wrong in assuming that quoted_printable_decode() and imap_qprint() should act as my preg_replace line above does?