diff --git a/cake/libs/configure.php b/cake/libs/configure.php index fa0604782..2f9d3f0e2 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -462,6 +462,11 @@ class Configure extends Object { $all = array_flip(array_flip((array_merge(array(CAKE_CORE_INCLUDE_PATH), $all)))); $used = array(); + $openBasedir = ini_get('open_basedir'); + if ($openBasedir) { + $all = explode(PATH_SEPARATOR, $openBasedir); + } + foreach ($all as $path) { $path = rtrim($path, DS); if ($path == '.' || in_array(realpath($path), $used)) {