thomascube
2010-06-18 8e5ed7be9e754dfca0278653002ec75f9199d8a9
Strip comments in css string + don't set font color to tags

2 files modified
4 ■■■ changed files
program/include/main.inc 3 ●●●●● patch | view | raw | blame | history
skins/default/common.css 1 ●●●● patch | view | raw | blame | history
program/include/main.inc
@@ -830,6 +830,9 @@
  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)))
  {
skins/default/common.css
@@ -22,7 +22,6 @@
{
  font-family: "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000000;
}
th