#28754: validate_ipv46_address validator allows IP addresses to begin with a 
first
octet of zero
-------------------------------------+-------------------------------------
     Reporter:  frankston            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Core (Other)         |                  Version:  1.11
     Severity:  Normal               |               Resolution:
     Keywords:  IP, regular          |             Triage Stage:
  expression                         |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Description changed by frankston:

Old description:

> The regular expression used by the
> [https://docs.djangoproject.com/en/1.11/_modules/django/core/validators/#validate_ipv46_address
> 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

New description:

 The regular expression used by the
 
[https://docs.djangoproject.com/en/1.11/_modules/django/core/validators/#validate_ipv46_address
 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

--

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28754#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.2f93773d888e9f5969613f7537da5d8e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to