Fixed yet another bug with small letters in QP encoding-
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 4 Aug 2000 14:30:39 +0000 (14:30 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 4 Aug 2000 14:30:39 +0000 (14:30 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@676 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 357aecae00ee1c6134d001888e8670e2f47a74f9..25dcca5385d5a2808459b7660dc0991e2bc94f76 100644 (file)
             $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)) {
+           while (ereg("(=([0-9][a-f])|([a-f][0-9])|([a-f][0-9]))", $replace, $res)) {
               $replace = str_replace($res[1], strtoupper($res[1]), $replace);
            }
             $replace = quoted_printable_decode($replace);