-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[HttpFoundation] IpUtils::checkIp4() should allow /0
networks
#14690
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
Changes from 1 commit
99465b1
9cb4ccb
aa24083
fadbba9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
… address is a valid IPv4
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,6 +35,7 @@ public function testIpv4Provider() | |
array(true, '192.168.1.1', array('192.168.1.0/24', '1.2.3.4/1')), | ||
array(false, '192.168.1.1', array('1.2.3.4/1', '4.3.2.1/1')), | ||
array(true, '1.2.3.4', '0.0.0.0/0'), | ||
array(false, '1.2.3.4', '256.256.256/0'), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This example must be: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I do not agree - it's not an |
||
); | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
0 === $netmask
to keep consistency with other places.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dosten
'0' === $netmask
then? (it's a string)