? boost-674664.patch
Index: boost.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v
retrieving revision 1.2.2.1.2.3.2.88
diff -u -p -r1.2.2.1.2.3.2.88 boost.install
--- boost.install	24 Jan 2010 18:25:46 -0000	1.2.2.1.2.3.2.88
+++ boost.install	25 Jan 2010 17:14:36 -0000
@@ -1464,3 +1464,25 @@ function boost_update_6125() {
     return array(array('success' => TRUE, 'query' => t('boost-gzip-cookie-test.html.gz did not need to be reset')));
   }
 }
+
+/**
+ * Update 6126 - Reset boost-gzip-cookie-test.html.gz file
+ */
+function boost_update_6126() {
+  $ret = array();
+  // Make sure we have boost.module file loaded
+  drupal_load('module', 'boost');
+  $filename = BOOST_ROOT_CACHE_DIR . '/' . BOOST_PERM_GZ_DIR . '/boost-gzip-cookie-test.html.gz';
+  if (is_file($filename) || is_link($filename)) {
+    if (unlink($filename)) {
+      _boost_generate_gzip_test_file();
+      return array(array('success' => TRUE, 'query' => t('boost-gzip-cookie-test.html.gz file was reset')));
+    }
+    else {
+      return array(array('success' => FALSE, 'query' => t('boost-gzip-cookie-test.html.gz file was not deleted; please manually delete this file')));
+    }
+  }
+  else {
+    return array(array('success' => TRUE, 'query' => t('boost-gzip-cookie-test.html.gz did not need to be reset')));
+  }
+}
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.298
diff -u -p -r1.3.2.2.2.5.2.298 boost.module
--- boost.module	24 Jan 2010 18:37:55 -0000	1.3.2.2.2.5.2.298
+++ boost.module	25 Jan 2010 17:14:37 -0000
@@ -2277,7 +2277,7 @@ function boost_cache_set($path, $data, $
     // Special handling of the front page for aggressive gzip test
     if ($path == '' && BOOST_AGGRESSIVE_GZIP && $extension == BOOST_FILE_EXTENSION) {
       _boost_generate_gzip_test_file();
-      boost_cache_write($filename, _boost_inject_code($data, '<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html" data="/boost-gzip-cookie-test.html" style="width:0px; height:0px; border:0px; position:absolute; top:-1000px; z-index:10;"></object>' . "\n"));
+      boost_cache_write($filename, _boost_inject_code($data, '<div style="width:0px; height:0px; border:0px; position:absolute; top:-1000px; z-index:10;"><object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html" data="/boost-gzip-cookie-test.html" style="width:0px; height:0px; border:0px; position:absolute; top:-1000px; z-index:10;"></object></div>' . "\n"));
     }
     else {
       boost_cache_write($filename, $data);
