X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_text.php;h=8176aafed87f60f458797042e08061175bb3126f;hb=f7cd8eb4e788b45f94c494836eae2ac63522a672;hp=424df12ae648ed87f9552ad59fe642e129deb728;hpb=d08f65133930704e86e17d18c8608a6fb9960257;p=squirrelmail.git diff --git a/src/view_text.php b/src/view_text.php index 424df12a..8176aafe 100644 --- a/src/view_text.php +++ b/src/view_text.php @@ -3,13 +3,12 @@ /** * view_text.php -- Displays the main frameset * - * Copyright (c) 1999-2005 The SquirrelMail Project Team - * Licensed under the GNU GPL. For full terms see the file COPYING. - * * Who knows what this file does. However PUT IT HERE DID NOT PUT * A SINGLE FREAKING COMMENT IN! Whoever is responsible for this, * be very ashamed. * + * @copyright © 1999-2006 The SquirrelMail Project Team + * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail */ @@ -72,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); }