mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fix session path/base for init()
This commit is contained in:
parent
16f4899821
commit
06f9d748e2
1 changed files with 3 additions and 1 deletions
|
@ -171,7 +171,9 @@ class CakeSession {
|
||||||
ClassRegistry::init($settings);
|
ClassRegistry::init($settings);
|
||||||
}
|
}
|
||||||
if ($start === true) {
|
if ($start === true) {
|
||||||
if (!empty($base)) {
|
if (empty($base)) {
|
||||||
|
self::$path = '/';
|
||||||
|
} else {
|
||||||
self::$path = $base;
|
self::$path = $base;
|
||||||
if (strpos($base, 'index.php') !== false) {
|
if (strpos($base, 'index.php') !== false) {
|
||||||
self::$path = str_replace('index.php', '', $base);
|
self::$path = str_replace('index.php', '', $base);
|
||||||
|
|
Loading…
Add table
Reference in a new issue