浏览代码

Fixed yet another bug with small letters in QP encoding-

gustavf 25 年之前
父节点
当前提交
0433a6171f
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);