? boost-503628-2.patch
? boost-507348.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.66
diff -u -p -r1.3.2.2.2.5.2.66 boost.module
--- boost.module	30 Jun 2009 02:59:08 -0000	1.3.2.2.2.5.2.66
+++ boost.module	1 Jul 2009 19:09:45 -0000
@@ -697,10 +697,8 @@ function boost_cache_expire_derivative($
     }
   }
   boost_cache_expire($path, $wildcard);
-
 }
 
-
 /**
  * Expires the static file cache for a given page, or multiple pages
  * matching a wildcard.
@@ -713,6 +711,12 @@ function boost_cache_expire_derivative($
  * TODO: Replace glob() with a database opperation.
  */
 function boost_cache_expire($path, $wildcard = FALSE) {
+  // Sanity check
+  if (boost_file_path($path) === FALSE) {
+    return FALSE;
+  }
+
+  // Get list of related files
   $tempA = glob(boost_file_path($path, FALSE, NULL) . (($wildcard) ? '*' : '') . BOOST_FILE_EXTENSION, GLOB_NOSORT);
   $tempB = glob(boost_file_path($path, FALSE, NULL) . (($wildcard) ? '*' : '') . BOOST_XML_EXTENSION, GLOB_NOSORT);
   $filenames = array_filter($tempA + $tempB);
@@ -720,6 +724,7 @@ function boost_cache_expire($path, $wild
     return FALSE;
   }
 
+  // Flush expired files
   foreach ($filenames as $filename) {
     boost_cache_kill($filename);
   }
@@ -1097,7 +1102,7 @@ function boost_cache_css_js_files($buffe
     $temp = explode(' />', array_pop($css));
     $css[] = array_shift($temp);
     $css = implode('',$css);
-    _boost_copy_css_files($css);  
+    _boost_copy_css_files($css);
   }
   if (BOOST_CACHE_JS) {
     $js = explode('<script type="text/javascript" ', $buffer);
