next up previous contents
Next: 其他 Up: 更新版本 Previous: hex2bin   Contents

部分信件中文寄信者及主題不見

  1. 解決方式:
    [root@mail www]# diff -uN squirrelmail-1.4.22.bak/functions/i18n.php
    squirrelmail-1.4.22/functions/i18n.php
    --- squirrelmail-1.4.22.bak/functions/i18n.php	2016-02-03 07:18:56.669214182
    +0800
    +++ squirrelmail-1.4.22/functions/i18n.php	2016-03-07 09:26:33.658620852
    +0800
    @@ -184,7 +184,8 @@
         }
     
         /* All HTML special characters are 7 bit and can be replaced first */
    -    if (! $save_html) $string = htmlspecialchars ($string);
    +    #if (! $save_html) $string = htmlspecialchars ($string);
    +	if (! $save_html) $string = htmlspecialchars ($string, ENT_COMPAT,
    'ISO-8859-1');
         $charset = strtolower($charset);
     
         set_my_charset();
    


2016-03-11