Prechádzať zdrojové kódy

if html attachment has character set information, it can be converted.
missing part of 1195232 patch

tokul 20 rokov pred
rodič
commit
5b40409020
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  1. 3 0
      src/view_text.php

+ 3 - 0
src/view_text.php

@@ -71,6 +71,9 @@ if (isset($languages[$squirrelmail_language]['XTRA_CODE']) &&
 
 if ($type1 == 'html' || (isset($override_type1) &&  $override_type1 == 'html')) {
     $body = MagicHTML( $body, $passed_id, $message, $mailbox);
+    // html attachment with character set information
+    if (! empty($charset))
+        $body = charset_decode($charset,$body,false,true);
 } else {
     translateText($body, $wrap_at, $charset);
 }