From 0b331da50922bb1b212c8b978b461be463cddaee Mon Sep 17 00:00:00 2001 From: stekkel Date: Tue, 28 May 2002 14:20:07 +0000 Subject: [PATCH] parsing $message to magicHTML for better handling message/rfc822 attachments git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2882 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 17882889..23fa3ce1 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -794,7 +794,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at) { $body = strip_tags( $body ); translateText($body, $wrap_at, $body_message->header->charset); } else { - $body = MagicHTML( $body, $id ); + $body = MagicHTML( $body, $id, $message ); } } else { translateText($body, $wrap_at, $body_message->header->charset); @@ -1942,7 +1942,7 @@ function sq_sanitize($body, * @param $id the id of the message * @return a string with html safe to display in the browser. */ -function magicHTML($body, $id){ +function magicHTML($body, $id, $message){ global $attachment_common_show_images, $view_unsafe_images, $has_unsafe_images, $message; /** -- 2.25.1