? .directory
? boost-495290.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.366
diff -u -p -r1.3.2.2.2.5.2.366 boost.module
--- boost.module	27 Aug 2010 17:40:04 -0000	1.3.2.2.2.5.2.366
+++ boost.module	27 Aug 2010 23:27:21 -0000
@@ -376,6 +376,14 @@ function boost_init() {
   $parts['host'] = strtolower($parts['host']);
   $base_url = boost_glue_url($parts);
 
+  // Make sure this is the correct domain
+  // Only works if $base_url is set in settings.php
+  if (strcmp($parts['host'], strtolower($_SERVER['HTTP_HOST'])) != 0) {
+    $GLOBALS['conf']['cache'] = CACHE_DISABLED;
+    $GLOBALS['_boost_cache_this'] = FALSE;
+    return;
+  }
+
   // Check if Drupal is started from index.php - could cause problems with other
   // contrib modules like ad module.
   if (strpos($_SERVER['SCRIPT_FILENAME'], 'index.php') !== FALSE) {
