소스 검색

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

Johannes Schmitt 14 년 전
부모
커밋
6aacfa3216
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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';