Don't strip style attributes if not viewing inline
authorMichael M Slusarz <slusarz@curecanti.org>
Sun, 27 Sep 2009 17:44:58 +0000 (11:44 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Sun, 27 Sep 2009 18:48:20 +0000 (12:48 -0600)
framework/Mime/lib/Horde/Mime/Viewer/Html.php

index c923e20..4151c27 100644 (file)
@@ -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;