Fix session path/base for init()

This commit is contained in:
predominant 2010-07-04 22:35:40 +10:00 committed by mark_story
parent 16f4899821
commit 06f9d748e2

View file

@ -171,7 +171,9 @@ class CakeSession {
ClassRegistry::init($settings);
}
if ($start === true) {
if (!empty($base)) {
if (empty($base)) {
self::$path = '/';
} else {
self::$path = $base;
if (strpos($base, 'index.php') !== false) {
self::$path = str_replace('index.php', '', $base);