X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_html.php;h=5e7df7c6b15904c187e6c553dde2c9098289d7ac;hb=72bc549bdade89eba7f0e37cf40e4964ea8b9f73;hp=305e6a1fdf60a7db01e4419afae6624e33003f61;hpb=f95115ffa358147a23ad763d5d6efa9e9fdc93bc;p=squirrelmail.git diff --git a/src/view_html.php b/src/view_html.php index 305e6a1f..5e7df7c6 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,8 @@ $encoding = strtolower($header->encoding); $body = mime_fetch_body($imap_stream, $passed_id, $ent_id); $body = decodeBody($body, $encoding); +$hookResults = do_hook('message_body', $body); +$body = $hookResults[1]; /** * TODO: check if xtra_code is needed. @@ -104,4 +75,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 +?>