Skip to content

Fix bug parsing 0 epoch expiry times#2014

Merged
sagikazarmark merged 1 commit intoguzzle:masterfrom
neerolyte:fix-cookie-isexpired-check
Mar 26, 2018
Merged

Fix bug parsing 0 epoch expiry times#2014
sagikazarmark merged 1 commit intoguzzle:masterfrom
neerolyte:fix-cookie-isexpired-check

Conversation

@neerolyte
Copy link
Copy Markdown
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
Copy Markdown
Member

👍

@sagikazarmark
Copy link
Copy Markdown
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.

3 participants