You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BrowserKit Cookie class throws an UnexpectedValueException if Expires attribute contains invalid value, but RFC 6265 states that "If the attribute-value failed to parse as a cookie date, ignore the cookie-av."
The text was updated successfully, but these errors were encountered:
Actually, after thinking of this again I do not think that we need to change the constructor. It is documented that the expected value must be a string containing the expires timestamp. However, we indeed need to ignore invalid date formats when we are parsing a Set-Cookie header (i.e. inside the fromString() method). See #21462 for a fix.
…abbuh)
This PR was merged into the 2.7 branch.
Discussion
----------
[BrowserKit] ignore invalid cookies expires date format
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #15656
| License | MIT
| Doc PR |
Commits
-------
f19788d ignore invalid cookies expires date format
BrowserKit Cookie class throws an UnexpectedValueException if Expires attribute contains invalid value, but RFC 6265 states that "If the attribute-value failed to parse as a cookie date, ignore the cookie-av."
The text was updated successfully, but these errors were encountered: