Skip to content

Conversation

@Toflar
Copy link
Contributor

@Toflar Toflar commented Jan 15, 2018

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

Request::__toString() ignored cookie values which caused me some headaches during a debugging session 😄

Copy link
Contributor

@phansys phansys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Status: Needs work.

$cookies[] = $k.'='.$v;
}

if (0 !== count($cookies)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, use !empty() instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I like type safety but fixed :-)

@fabpot
Copy link
Member

fabpot commented Jan 16, 2018

Thank you @Toflar.

@fabpot fabpot closed this Jan 16, 2018
fabpot added a commit that referenced this pull request Jan 16, 2018
This PR was squashed before being merged into the 2.7 branch (closes #25799).

Discussion
----------

Fixed Request::__toString ignoring cookies

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

`Request::__toString()` ignored cookie values which caused me some headaches during a debugging session 😄

Commits
-------

0f79d09 Fixed Request::__toString ignoring cookies
@Toflar Toflar deleted the fix-request-tostring branch January 16, 2018 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants