Skip to content

[HttpFoundation] Avoid warnings when checking malicious IPs #18084

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

Merged
merged 1 commit into from
Mar 10, 2016

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented Mar 10, 2016

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

@@ -780,6 +780,8 @@ public function getClientIps()

if (!filter_var($clientIp, FILTER_VALIDATE_IP)) {
unset($clientIps[$key]);

continue;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is why #16736 didn't fully resolve the issue.

@xabbuh
Copy link
Member

xabbuh commented Mar 10, 2016

👍

@fabpot
Copy link
Member

fabpot commented Mar 10, 2016

Thank you @jakzal.

@fabpot fabpot merged commit 3067bdb into symfony:2.3 Mar 10, 2016
fabpot added a commit that referenced this pull request Mar 10, 2016
…s (jakzal)

This PR was merged into the 2.3 branch.

Discussion
----------

[HttpFoundation] Avoid warnings when checking malicious IPs

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

Commits
-------

3067bdb [HttpFoundation] Avoid warnings when checking malicious IPs
@jakzal jakzal deleted the iputils-invalid-ip branch March 10, 2016 13:33
@fabpot fabpot mentioned this pull request Mar 13, 2016
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.

4 participants