Browse Source

Fixed yet another bug with small letters in QP encoding-

gustavf 25 years ago
parent
commit
0433a6171f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      functions/mime.php

+ 1 - 1
functions/mime.php

@@ -536,7 +536,7 @@
             $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);