? common.inc-d6.patch Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.756.2.73 diff -u -p -r1.756.2.73 common.inc --- includes/common.inc 6 Nov 2009 08:34:58 -0000 1.756.2.73 +++ includes/common.inc 12 Nov 2009 23:09:31 -0000 @@ -2007,9 +2007,13 @@ function drupal_load_stylesheet($file, $ if ($_optimize) { // Perform some safe CSS optimizations. + $contents = preg_replace('{ + (?<=\\\\\*/)([^/\*]+/\*)([^\*/]+\*/) # Add a backslash also at the end ie-mac hack comment, so the next pass will not touch it. + # The added backshlash does not affect the effectiveness of the hack. + }x', '\1\\\\\2', $contents); $contents = preg_replace('< - \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses. - /\*([^*\\\\]|\*(?!/))+\*/ # Remove comments that are not CSS hacks. + \s*([@{}:;,]|\)\s|\s\()\s* | # Remove whitespace around separators, but keep space around parentheses. + /\*[^*\\\\]*\*+([^/*][^*]*\*+)*/ | # Remove comments that are not CSS hacks >x', '\1', $contents); }