-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
IpUtils::checkIp4() should allow /0
networks
#14674
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
Labels
Comments
/0
nets/0
networks
Do you have any reference about this? |
http://tools.ietf.org/html/rfc4632
|
zerkms
added a commit
to zerkms/symfony
that referenced
this issue
May 19, 2015
….0.0.0/0" as a valid mask (that includes every IPv4 address) See http://tools.ietf.org/html/rfc4632#section-3.1
zerkms
added a commit
to zerkms/symfony
that referenced
this issue
May 19, 2015
…base IP address is a valid IPv4
zerkms
added a commit
to zerkms/symfony
that referenced
this issue
May 19, 2015
…or consistency purposes
zerkms
added a commit
to zerkms/symfony
that referenced
this issue
May 19, 2015
…icitly, since it's the only allowed network of a `/0` size
fabpot
added a commit
that referenced
this issue
May 20, 2015
…works (zerkms) This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #14690). Discussion ---------- [HttpFoundation] IpUtils::checkIp4() should allow `/0` networks | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | #14674 | License | MIT Technically it's a breaking change, since the result of the IpUtils::checkIp4('1.2.3.4', '0.0.0.0/0') call was `false` now `true`. Practically - no one should ever relied on this since it's simply wrong Commits ------- 921ecff [HttpFoundation] IpUtils::checkIp4() should allow networks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
0.0.0.0/0
is a valid CIDR and every IP address falls into it.I think
IpUtils::checkIp4()
should allow itThe text was updated successfully, but these errors were encountered: