? common.inc-47.patch
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.1008
diff -u -p -r1.1008 common.inc
--- includes/common.inc	5 Oct 2009 02:48:38 -0000	1.1008
+++ includes/common.inc	6 Oct 2009 08:20:47 -0000
@@ -3060,9 +3060,13 @@ function drupal_load_stylesheet_content(
 
   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);
   }
 
