? boost-616938.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.246
diff -u -p -r1.3.2.2.2.5.2.246 boost.module
--- boost.module	11 Nov 2009 08:14:03 -0000	1.3.2.2.2.5.2.246
+++ boost.module	13 Nov 2009 00:29:12 -0000
@@ -1285,11 +1285,12 @@ function _boost_ob_handler() {
   if (!empty($buffer)) {
     $status = boost_get_http_status();
     $types = boost_get_content_type();
+    $type = array_pop($types);
     if (BOOST_VERBOSE >= 7) {
-      watchdog('boost', 'Debug: _boost_ob_handler() <br />HTTP Info: !status - !types <br />Path: !path <br />Content Container: !callback <br />Content Type: !type <br />ID: !id <br />Cache This: !cache.', array('!status' => $status, '!types' => implode(', ', $types), '!path' => boost_file_path($GLOBALS['_boost_path']), '!callback' => $GLOBALS['_boost_router_item']['page_callback'], '!type' => $GLOBALS['_boost_router_item']['page_type'], '!id' => $GLOBALS['_boost_router_item']['page_id'], '!cache' => $GLOBALS['_boost_cache_this'] ? 'TRUE' : 'FALSE'));
+      watchdog('boost', 'Debug: _boost_ob_handler() <br />HTTP Info: !status - !types. Using !type. <br />Path: !path <br />Content Container: !callback <br />Content Type: !type <br />ID: !id <br />Cache This: !cache.', array('!status' => $status, '!types' => implode(', ', $types), '!types' => $type, '!path' => boost_file_path($GLOBALS['_boost_path']), '!callback' => $GLOBALS['_boost_router_item']['page_callback'], '!type' => $GLOBALS['_boost_router_item']['page_type'], '!id' => $GLOBALS['_boost_router_item']['page_id'], '!cache' => $GLOBALS['_boost_cache_this'] ? 'TRUE' : 'FALSE'));
     }
-    $types = array_pop($types);
-    if (stristr($types, 'text/javascript')) {
+
+    if (stristr($type, 'text/javascript') !== FALSE) {
       if ($status == 200 & $GLOBALS['_boost_cache_this']) {
         if (BOOST_ASYNCHRONOUS_OUTPUT) {
           boost_async_opp($buffer, FALSE, 'text/javascript');
@@ -1300,7 +1301,7 @@ function _boost_ob_handler() {
         $filename = boost_file_path($GLOBALS['_boost_path'], TRUE, BOOST_JSON_EXTENSION);
       }
     }
-    elseif (stristr($types, 'application/rss') || stristr($types, 'text/xml') || stristr($types, 'application/rss+xml')) {
+    elseif (stristr($type, 'application/rss') !== FALSE || stristr($type, 'text/xml') !== FALSE || stristr($type, 'application/rss+xml') !== FALSE) {
       if ($status == 200 && $GLOBALS['_boost_cache_this']) {
         if (BOOST_ASYNCHRONOUS_OUTPUT) {
           boost_async_opp($buffer, FALSE, 'text/xml');
@@ -1311,7 +1312,7 @@ function _boost_ob_handler() {
         $filename = boost_file_path($GLOBALS['_boost_path'], TRUE, BOOST_XML_EXTENSION);
       }
     }
-    elseif (stristr($types, 'text/html')) {
+    elseif (stristr($type, 'text/html') !== FALSE) {
       if ($status == 200 && $GLOBALS['_boost_cache_this']) {
         if (BOOST_ASYNCHRONOUS_OUTPUT) {
           boost_async_opp($buffer, FALSE, 'text/html');
