Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug parsing 0 epoch expiry times #2014

Merged
merged 1 commit into from Mar 26, 2018

Conversation

neerolyte
Copy link
Contributor

As per #1952 expiry times
specified as Thu, 01 Jan 1970 00:00:00 GMT should be treated as
expired, but they weren't because 0 was implicitly casting to a bool in
SetCookie::isExpired().

As per guzzle#1952 expiry times
specified as "Thu, 01 Jan 1970 00:00:00 GMT" should be treated as
expired, but they weren't because 0 was implicitly casting to a bool in
SetCookie::isExpired().
@sagikazarmark sagikazarmark self-assigned this Feb 27, 2018
@sagikazarmark sagikazarmark added this to the 6.3.1 milestone Feb 27, 2018
@GrahamCampbell
Copy link
Member

👍

@sagikazarmark
Copy link
Member

Great patch, thanks a lot and sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants