From ea51e94a20a78c3da74e6c90f0f65ed8ae9ae472 Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 9 Oct 2005 16:21:58 +0000 Subject: [PATCH] if html attachment has character set information, it can be converted. missing part of 1195232 patch git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10139 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/view_text.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/view_text.php b/src/view_text.php index 6c145950..63fc8960 100644 --- a/src/view_text.php +++ b/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); } -- 2.25.1