mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-18 15:39:53 +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@6514 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
7978745056
commit
0740ac519b
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ class CakeSession extends Object {
|
||||||
* @var string
|
* @var string
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
var $path = false;
|
var $path = '/';
|
||||||
/**
|
/**
|
||||||
* Error number of last occurred error
|
* Error number of last occurred error
|
||||||
*
|
*
|
||||||
|
@ -139,7 +139,7 @@ class CakeSession extends Object {
|
||||||
if (empty($base) || strpos($base, '?') === 0 || strpos($base, 'index.php') === 0) {
|
if (empty($base) || strpos($base, '?') === 0 || strpos($base, 'index.php') === 0) {
|
||||||
$this->path = '/';
|
$this->path = '/';
|
||||||
} else {
|
} else {
|
||||||
$this->path = $base;
|
empty($field['default']) = $base;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strpos($this->host, ':') !== false) {
|
if (strpos($this->host, ':') !== false) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue