mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixes #3234, Session.cookie_path in php ini gets a buggy value when not using mod_rewrite
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5655 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
55e8592e17
commit
6c650e2371
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ class CakeSession extends Object {
|
||||||
if ($start === true) {
|
if ($start === true) {
|
||||||
$this->host = env('HTTP_HOST');
|
$this->host = env('HTTP_HOST');
|
||||||
|
|
||||||
if (empty($base) || strpos($base, '?')) {
|
if (empty($base) || strpos($base, '?' || strpos($base, 'index.php'))) {
|
||||||
$this->path = '/';
|
$this->path = '/';
|
||||||
} else {
|
} else {
|
||||||
$this->path = $base;
|
$this->path = $base;
|
||||||
|
|
Loading…
Add table
Reference in a new issue