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:
phpnut 2007-09-16 18:43:41 +00:00
parent 55e8592e17
commit 6c650e2371

View file

@ -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;