瀏覽代碼

Fixed bug: Only characters having odd numbers where encoded in
encodeHeader. Introduced in CVS revision 1.76 of the file, which
refers to patch #10265, but I was unable to find this patch.

gustavf 24 年之前
父節點
當前提交
6ecbbc1ad7
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      functions/mime.php

+ 0 - 2
functions/mime.php

@@ -725,7 +725,6 @@
 
       // Encode only if the string contains 8-bit characters or =?
       if (ereg("([\200-\377]|=\\?)", $string)) {
-         $newstring = "=?$default_charset?Q?";
          
          // First the special characters
          $string = str_replace("=", "=3D", $string);
@@ -737,7 +736,6 @@
 	    $replace = chr($ch);
 	    $insert = sprintf("=%02X", $ch);
             $string = str_replace($replace, $insert, $string);
-	    $ch++;
          }
 
          $newstring = "=?$default_charset?Q?".$string."?=";