#3421: URLField does not validate IP addresses, or localhost
--------------------------------------+-------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: adrian
Status: new | Component: django.newforms
Version: SVN | Resolution:
Keywords: URLField | Stage: Design decision
needed
Has_patch: 0 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
--------------------------------------+-------------------------------------
Changes (by Simon G. <[EMAIL PROTECTED]>):
* needs_better_patch: => 0
* component: Validators => django.newforms
* needs_tests: => 0
* summary: URLField: 127.0.0.1 URLs are invalid => URLField does not
validate IP addresses, or localhost
* needs_docs: => 0
* stage: Unreviewed => Design decision needed
Comment:
I've moved this onto newforms, as this is still an issue there - e.g.:
{{{
In [47]: f.clean('http://localhost')
...
ValidationError: [u'Enter a valid URL.']
In [48]: f.clean('http://127.0.0.1')
...
ValidationError: [u'Enter a valid URL.']
In [49]: f.clean('http://208.113.142.170')
...
ValidationError: [u'Enter a valid URL.']
}}}
Looking at the regex though, it may be more trouble than it's worth to fix
this.
--
Ticket URL: <http://code.djangoproject.com/ticket/3421#comment:1>
Django Code <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---