? boost-711004.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.304
diff -u -p -r1.3.2.2.2.5.2.304 boost.module
--- boost.module	6 Feb 2010 18:20:58 -0000	1.3.2.2.2.5.2.304
+++ boost.module	13 Feb 2010 22:33:09 -0000
@@ -2847,19 +2847,20 @@ function boost_cache_write($filename, $b
  */
 function boost_cache_directory($host = NULL, $absolute = TRUE, $root_dir = NULL, $normal_dir = NULL) {
   global $base_url;
+  $temp_base_url = $base_url;
   $root_dir = is_null($root_dir) ? BOOST_ROOT_CACHE_DIR : $root_dir;
   $normal_dir = is_null($normal_dir) ? BOOST_NORMAL_DIR : $normal_dir;
-  if ($base_url == "http://") {
+  if ($temp_base_url == "http://") {
     if (!BOOST_MULTISITE_SINGLE_DB) {
-      $base_url = $base_url . str_replace($root_dir . '/', '', variable_get('boost_file_path', boost_cache_directory(NULL, FALSE)));
+      $temp_base_url = $temp_base_url . str_replace($root_dir . '/', '', variable_get('boost_file_path', boost_cache_directory(NULL, FALSE)));
     }
     elseif (BOOST_NORMAL_DIR != '' && db_result(db_query("SELECT count(DISTINCT base_dir) FROM {boost_cache}")) == 1) {
-      $base_dir = db_result(db_query("SELECT DISTINCT base_dir FROM {boost_cache}"));
-      $base_url = $base_url . str_replace($root_dir . '/', '', $base_dir);
-      $base_url = $base_url . str_replace($normal_dir . '/', '', $base_dir);
+      $temp_base_url = db_result(db_query("SELECT DISTINCT base_dir FROM {boost_cache}"));
+      $temp_base_url = $temp_base_url . str_replace($root_dir . '/', '', $base_dir);
+      $temp_base_url = $temp_base_url . str_replace($normal_dir . '/', '', $base_dir);
     }
   }
-  if (@parse_url($base_url) === FALSE) {
+  if (@parse_url($temp_base_url) === FALSE) {
     //Error has been caught here
     if (BOOST_VERBOSE >= 1) {
       watchdog('boost', 'base_url is not set in your settings.php file. Please read Important Notes in boosts README.txt file.', array(), WATCHDOG_NOTICE);
@@ -2867,7 +2868,7 @@ function boost_cache_directory($host = N
     return FALSE;
   }
 
-  $parts = parse_url($base_url);
+  $parts = parse_url($temp_base_url);
   $host = !empty($host) ? $host : $parts['host'];
   $parts['path'] = isset($parts['path']) ? $parts['path'] : '/';
   $subdir = implode('/', array_filter(explode('/', (!empty($base_path)) ? $base_path : $parts['path'])));
