X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fview_html.php;h=28aa5a78df9a5b31c0c381df79fc532546521c1e;hp=305e6a1fdf60a7db01e4419afae6624e33003f61;hb=fc516ab6cc478039da896adfbc024a747845346c;hpb=f95115ffa358147a23ad763d5d6efa9e9fdc93bc diff --git a/src/view_html.php b/src/view_html.php index 305e6a1f..28aa5a78 100644 --- a/src/view_html.php +++ b/src/view_html.php @@ -1,56 +1,32 @@ getEntity($ent_id); +$message_ent = $message->getEntity($ent_id); if ($passed_ent_id) { - $message = &$message->getEntity($passed_ent_id); + $message = $message->getEntity($passed_ent_id); } $header = $message_ent->header; $type0 = $header->type0; @@ -87,6 +56,7 @@ $encoding = strtolower($header->encoding); $body = mime_fetch_body($imap_stream, $passed_id, $ent_id); $body = decodeBody($body, $encoding); +do_hook('message_body', $body); /** * TODO: check if xtra_code is needed. @@ -104,4 +74,4 @@ $body = MagicHTML( $body, $passed_id, $message, $mailbox); /** TODO: charset might be part of html code. */ header('Content-Type: text/html; charset=' . $charset); echo $body; -?> \ No newline at end of file +?>