From 6aacfa321698d95109bd86cd7ecc2ce0c6676a52 Mon Sep 17 00:00:00 2001 From: Johannes Schmitt Date: Sat, 30 Oct 2010 17:32:23 +0200 Subject: [PATCH] fixes a bug where in most cases cookies with path / were not set properly --- src/Symfony/Component/HttpFoundation/HeaderBag.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/HeaderBag.php b/src/Symfony/Component/HttpFoundation/HeaderBag.php index 60972c42ca..2d7f3a7e39 100644 --- a/src/Symfony/Component/HttpFoundation/HeaderBag.php +++ b/src/Symfony/Component/HttpFoundation/HeaderBag.php @@ -224,9 +224,7 @@ class HeaderBag $cookie .= '; domain='.$domain; } - if ('/' !== $path) { - $cookie .= '; path='.$path; - } + $cookie .= '; path='.$path; if ($secure) { $cookie .= '; secure';