extra sanitizing was added in B and Q header decoding, when SquirrelMail tried to
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Apr 2006 17:47:58 +0000 (17:47 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 24 Apr 2006 17:47:58 +0000 (17:47 +0000)
convert header to user's character set (#1460638).

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11085 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index d06aecdee1159d0c94f59f9362def9ee0c9cbc05..58f29884992b74f2bf83d3be8224b4e4c107b173 100644 (file)
@@ -759,7 +759,7 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true,$decide=false) {
                             /* convert string to different charset,
                              * if functions asks for it (usually in compose)
                              */
-                            $ret .= charset_convert($res[2],$replace,$default_charset);
+                            $ret .= charset_convert($res[2],$replace,$default_charset,$htmlsave);
                         } else {
                             // convert string to html codes in order to display it
                             $ret .= charset_decode($res[2],$replace);
@@ -780,7 +780,7 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true,$decide=false) {
                             /* convert string to different charset,
                              * if functions asks for it (usually in compose)
                              */
-                            $replace = charset_convert($res[2], $replace,$default_charset);
+                            $replace = charset_convert($res[2], $replace,$default_charset,$htmlsave);
                         } else {
                             // convert string to html codes in order to display it
                             $replace = charset_decode($res[2], $replace);