? common.inc-d6.patch
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.756.2.71
diff -u -p -r1.756.2.71 common.inc
--- includes/common.inc	23 Sep 2009 09:09:29 -0000	1.756.2.71
+++ includes/common.inc	4 Oct 2009 10:41:54 -0000
@@ -2007,11 +2007,14 @@ function drupal_load_stylesheet($file, $
 
     if ($_optimize) {
       // Perform some safe CSS optimizations.
+      $contents = preg_replace('{
+        (?<=\\\\\*/)([^/\*]+/\*)([^\*/]+\*/) # Add a backslash also at the end hack comment, so the next pass will not touch it
+        }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.
-        [\n\r]                        # Remove line breaks.
-        >x', '\1', $contents);
+        \s*([@{}:;,]|\)\s|\s\()\s* |         # Remove whitespace around separators, but keep space around parentheses.
+        /\*[^*\\\\]*\*+([^/*][^*]*\*+)*/ |   # Remove comments that are not CSS hacks.
+        [\n\r]                               # Remove line breaks.
+        >x', '\1', $contents);
     }
 
     // Change back directory.
