Strip comments in css string + don't set font color to tags

release-0.6
thomascube 15 years ago
parent f865b68205
commit 8e5ed7be9e

@ -830,6 +830,9 @@ function rcmail_mod_css_styles($source, $container_id)
if (preg_match('/expression|behavior|url\(|import/', $stripped))
return '/* evil! */';
// remove css comments (sometimes used for some ugly hacks)
$source = preg_replace('!/\*(.+)\*/!Ums', '', $source);
// cut out all contents between { and }
while (($pos = strpos($source, '{', $last_pos)) && ($pos2 = strpos($source, '}', $pos)))
{

@ -22,7 +22,6 @@ body, td, th, div, p, h3
{
font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000000;
}
th

Loading…
Cancel
Save