? boost-591560.patch
Index: boost.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/boost/boost.module,v
retrieving revision 1.3.2.2.2.5.2.150
diff -u -p -r1.3.2.2.2.5.2.150 boost.module
--- boost.module	27 Sep 2009 06:47:55 -0000	1.3.2.2.2.5.2.150
+++ boost.module	29 Sep 2009 23:15:52 -0000
@@ -2165,13 +2165,19 @@ function _boost_get_menu_router() {
  *   The top-level directory that will be recursively created.
  * @param $recursive
  *   Operate in a recursive manner.
+ * @param $recursive
+ *   How deep the recursion is.
  */
-function _boost_mkdir_p($pathname, $recursive = TRUE) {
+function _boost_mkdir_p($pathname, $recursive = TRUE, $depth = 0) {
+  $depth++;
   $mode = is_numeric(BOOST_PERMISSIONS_DIR) ? octdec(BOOST_PERMISSIONS_DIR) : 0775;
   if (is_dir($pathname)) {
     return TRUE;
   }
-  if ($recursive && !_boost_mkdir_p(dirname($pathname))) {
+  if ($depth > BOOST_MAX_PATH_DEPTH) {
+    return FALSE;
+  }
+  if ($recursive && !_boost_mkdir_p(dirname($pathname), TRUE, $depth)) {
     return FALSE;
   }
   if ($result = @mkdir($pathname, $mode)) {
