Opened 7 years ago
Last modified 5 years ago
#28754 closed Bug
validate_ipv46_address validator allows IP addresses to begin with a first octet of zero — at Version 1
Reported by: | frankston | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | 1.11 |
Severity: | Normal | Keywords: | IP, regular expression |
Cc: | Triage Stage: | Someday/Maybe | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
The regular expression used by the validate_ipv46_address validator allows IP addresses to begin with a first octet of zero.
For example the following IPs are incorrectly identified as being valid:
0.1.2.3
0.90.11.2
As a side note the ping command (on Ubuntu at least) sees this as an invalid IP:
~$ ping 0.1.2.3
connect: Invalid argument
Note:
See TracTickets
for help on using tickets.