Correctly show phishing highlighting when viewing inline
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 25 Sep 2009 17:10:37 +0000 (11:10 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 25 Sep 2009 17:10:37 +0000 (11:10 -0600)
imp/lib/Mime/Viewer/Html.php

index 74696c2..680064e 100644 (file)
@@ -185,10 +185,9 @@ class IMP_Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Html
     {
         $data = $this->_mimepart->getContents();
         $charset = Horde_Nls::getCharset();
-        $msg_charset = $this->_mimepart->getCharset();
 
         /* Sanitize the HTML. */
-        $data = $this->_cleanHTML($data, array('charset' => $msg_charset));
+        $data = $this->_cleanHTML($data, array('phishing' => $inline));
 
         /* We are done processing if in mimp mode, or we are converting to
          * text. */