Quellcode durchsuchen

[HttpFoundation] changed default value of Cookie httponly argument to match PHP defaults

Fabien Potencier vor 14 Jahren
Ursprung
Commit
84dde4074a
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/Symfony/Component/HttpFoundation/Cookie.php

+ 1 - 1
src/Symfony/Component/HttpFoundation/Cookie.php

@@ -26,7 +26,7 @@ class Cookie
     protected $secure;
     protected $httpOnly;
 
-    public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = true)
+    public function __construct($name, $value = null, $expire = 0, $path = '/', $domain = null, $secure = false, $httpOnly = false)
     {
         // from PHP source code
         if (preg_match("/[=,; \t\r\n\013\014]/", $name)) {