From: gustavf Date: Tue, 25 Jul 2000 09:24:15 +0000 (+0000) Subject: Fixed bug that ignored lowercase quoted printable in headers. X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=5155cfcbc15139e9f1cbd6e6bf8450c30e294bc3 Fixed bug that ignored lowercase quoted printable in headers. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@636 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mime.php b/functions/mime.php index b87601f3..ce634671 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -525,6 +525,11 @@ $replace = base64_decode($res[3]); } else { $replace = ereg_replace("_", " ", $res[3]); + // Convert lowercase Quoted Printable to uppercase for + // quoted_printable_decode to understand it. + while (ereg("(=([0-9][a-f])|([a-f][0-9]))", $replace, $res)) { + $replace = str_replace($res[1], strtoupper($res[1]), $replace); + } $replace = quoted_printable_decode($replace); }