Explorar o código

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

Johannes Schmitt %!s(int64=14) %!d(string=hai) anos
pai
achega
6aacfa3216
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/Symfony/Component/HttpFoundation/HeaderBag.php

+ 1 - 3
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';