? boost-674664.1.patch ? boost-674664.patch ? boost-679050.patch ? boost-ignore_htaccess_warning.patch Index: boost.install =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.install,v retrieving revision 1.2.2.1.2.3.2.85 diff -u -p -r1.2.2.1.2.3.2.85 boost.install --- boost.install 23 Jan 2010 22:08:33 -0000 1.2.2.1.2.3.2.85 +++ boost.install 24 Jan 2010 04:16:08 -0000 @@ -1440,3 +1440,25 @@ function boost_update_6124() { _boost_index_exists($ret, 'boost_cache_relationships', 'page_type'); return $ret; } + +/** + * Update 6125 - Reset boost-gzip-cookie-test.html.gz file + */ +function boost_update_6125() { + $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.291 diff -u -p -r1.3.2.2.2.5.2.291 boost.module --- boost.module 23 Jan 2010 22:16:49 -0000 1.3.2.2.2.5.2.291 +++ boost.module 24 Jan 2010 04:16:10 -0000 @@ -1298,7 +1298,7 @@ function boost_theme() { } function theme_boost_cache_status($ttl, $text) { - return '' . $text . ''; + return '
' . $text . '
'; } ////////////////////////////////////////////////////////////////////////////// @@ -2267,7 +2267,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, '' . "\n")); + boost_cache_write($filename, _boost_inject_code($data, '' . "\n")); } else { boost_cache_write($filename, $data); @@ -3580,7 +3580,7 @@ date.setTime(date.getTime() + (days * 24 expires = '; expires=' + date.toUTCString(); document.cookie = 'boost-gzip=true' + expires + '; path=/' -

It works!

+

It works!

ETO; _boost_write_file_chmod($filename, gzencode($string, 9)); }