Explorar o código

extra sanitizing was added in B and Q header decoding, when SquirrelMail tried to
convert header to user's character set (#1460638).

tokul %!s(int64=19) %!d(string=hai) anos
pai
achega
41165180cf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      functions/mime.php

+ 2 - 2
functions/mime.php

@@ -759,7 +759,7 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true,$decide=false) {
                             /* convert string to different charset,
                             /* convert string to different charset,
                              * if functions asks for it (usually in compose)
                              * 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 {
                         } else {
                             // convert string to html codes in order to display it
                             // convert string to html codes in order to display it
                             $ret .= charset_decode($res[2],$replace);
                             $ret .= charset_decode($res[2],$replace);
@@ -780,7 +780,7 @@ function decodeHeader ($string, $utfencode=true,$htmlsave=true,$decide=false) {
                             /* convert string to different charset,
                             /* convert string to different charset,
                              * if functions asks for it (usually in compose)
                              * 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 {
                         } else {
                             // convert string to html codes in order to display it
                             // convert string to html codes in order to display it
                             $replace = charset_decode($res[2], $replace);
                             $replace = charset_decode($res[2], $replace);