Index: bootstrap.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/bootstrap.inc,v
retrieving revision 1.216
diff -u -r1.216 bootstrap.inc
--- bootstrap.inc	8 Jul 2008 01:08:15 -0000	1.216
+++ bootstrap.inc	12 Jul 2008 22:19:09 -0000
@@ -655,8 +655,17 @@
   header("Cache-Control: must-revalidate");
 
   if (variable_get('page_compression', TRUE)) {
+    // Check for buggy versions of Internet Explorer
+    $is_ie6 = false;
+    if (!strstr($_SERVER['HTTP_USER_AGENT'], 'Opera') && preg_match('/^Mozilla\/4\.0 \(compatible; MSIE ([0-9]\.[0-9])/i', $_SERVER['HTTP_USER_AGENT'], $matches)) {
+      $version = floatval($matches[1]);
+
+      if ($version <= 6 && !strstr($_SERVER['HTTP_USER_AGENT'], 'EV1'))
+        $is_ie6 = true;
+    }
+ 
     // Determine if the browser accepts gzipped data.
-    if (@strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') === FALSE && function_exists('gzencode')) {
+    if (((@strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') === FALSE)||($is_ie6)) && (function_exists('gzencode'))){
       // Strip the gzip header and run uncompress.
       $cache->data = gzinflate(substr(substr($cache->data, 10), 0, -8));
     }

