瀏覽代碼

Whoops. Forgot the other part of it.

indiri69 21 年之前
父節點
當前提交
1e2870c9b7
共有 1 個文件被更改,包括 6 次插入7 次删除
  1. 6 7
      functions/mime.php

+ 6 - 7
functions/mime.php

@@ -660,13 +660,6 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) {
             $chunk = $res[5];
             $chunk = $res[5];
             $encoded = true;
             $encoded = true;
         }
         }
-
-        if (!$encoded && $htmlsave) {
-            $ret .= htmlspecialchars($chunk);
-        } else {
-            $ret .= $chunk;
-        }
-
         if (!$encoded) {
         if (!$encoded) {
             if ($htmlsave) {
             if ($htmlsave) {
                 $ret .= ' ';
                 $ret .= ' ';
@@ -674,6 +667,12 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true) {
                 $ret .= ' ';
                 $ret .= ' ';
             }
             }
         }
         }
+
+        if (!$encoded && $htmlsave) {
+            $ret .= htmlspecialchars($chunk);
+        } else {
+            $ret .= $chunk;
+        }
         ++$i;
         ++$i;
     }
     }
     /* remove the first added space */
     /* remove the first added space */