diff options
-rw-r--r-- | lib/exe/css.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/exe/css.php b/lib/exe/css.php index 1c265b449..5973991ef 100644 --- a/lib/exe/css.php +++ b/lib/exe/css.php @@ -241,6 +241,9 @@ function css_pluginstyles($mode='screen'){ * @author Andreas Gohr <andi@splitbrain.org> */ function css_compress($css){ + //strip (incorrect but common) one line comments + $css = preg_replace('!//.*$!m','',$css); + // strip whitespaces $css = preg_replace('![\r\n\t ]+!',' ',$css); $css = preg_replace('/ ?([:;,{}\/]) ?/','\\1',$css); |