From cc34b00dd6f31cb9d057a66646aec81dd64793f6 Mon Sep 17 00:00:00 2001 From: stekkel Date: Wed, 24 Jul 2002 13:04:38 +0000 Subject: [PATCH] Added LINK to the forbidden tag-list in magic HTML because it can contain external stylesheets or other dangerous things. In IE6 the included stylesheets messed up the layout of SM although the link attribute only is permitted in the head section ?? git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3126 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 650e8385..e8b7664f 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -211,7 +211,6 @@ function listEntities ($message) { } } - /* returns a $message object for a particular entity id */ function getEntity ($message, $ent_id) { return $message->getEntity($ent_id); @@ -286,7 +285,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma $show_html_default, $has_unsafe_images, $view_unsafe_images, $sort; $has_unsafe_images= 0; - + $body = ''; $urlmailbox = urlencode($mailbox); $body_message = getEntity($message, $ent_num); if (($body_message->header->type0 == 'text') || @@ -1435,7 +1434,8 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX'){ "meta", "html", "head", - "base" + "base", + "link" ); $rm_tags_with_content = Array( -- 2.25.1