Quellcode durchsuchen

[HttpFoundation] allow negative values for cookies expires timestamp

jsor vor 14 Jahren
Ursprung
Commit
fc1a8cac35
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

@@ -70,7 +70,7 @@ class Cookie
         } else {
             $str .= urlencode($this->getValue());
 
-            if ($this->getExpiresTime() > 0) {
+            if ($this->getExpiresTime() !== 0) {
                 $str .= '; expires='.gmdate("D, d-M-Y H:i:s T", $this->getExpiresTime());
             }
         }