From: Michael M Slusarz Date: Sun, 27 Sep 2009 17:44:58 +0000 (-0600) Subject: Don't strip style attributes if not viewing inline X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e931021d9b77d1c9352119f2492b14e735bba36f;p=horde.git Don't strip style attributes if not viewing inline --- diff --git a/framework/Mime/lib/Horde/Mime/Viewer/Html.php b/framework/Mime/lib/Horde/Mime/Viewer/Html.php index c923e20a5..4151c2776 100644 --- a/framework/Mime/lib/Horde/Mime/Viewer/Html.php +++ b/framework/Mime/lib/Horde/Mime/Viewer/Html.php @@ -129,8 +129,9 @@ class Horde_Mime_Viewer_Html extends Horde_Mime_Viewer_Driver } } - $strip_style_attributes = (($browser->isBrowser('mozilla') && - $browser->getMajor() == 4) || + $strip_style_attributes = !empty($options['inline']) && + (($browser->isBrowser('mozilla') && + $browser->getMajor() == 4) || $browser->isBrowser('msie')); $strip_styles = !empty($options['inline']) || $strip_style_attributes;