Fixed bug that ignored lowercase quoted printable in headers.
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 25 Jul 2000 09:24:15 +0000 (09:24 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 25 Jul 2000 09:24:15 +0000 (09:24 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@636 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index b87601f39baf6622a241ced87cc80c407734258f..ce634671d5882d1e64e8885c9041b86ac14a5389 100644 (file)
             $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);
          }