fixes a bug where in most cases cookies with path / were not set properly

This commit is contained in:
Johannes Schmitt 2010-10-30 17:32:23 +02:00 committed by Fabien Potencier
parent 1e13ecb5f3
commit 6aacfa3216

View File

@ -224,9 +224,7 @@ class HeaderBag
$cookie .= '; domain='.$domain;
}
if ('/' !== $path) {
$cookie .= '; path='.$path;
}
$cookie .= '; path='.$path;
if ($secure) {
$cookie .= '; secure';