Sfoglia il codice sorgente

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

Johannes Schmitt 14 anni fa
parent
commit
6aacfa3216
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  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';