summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-11-10 03:39:00 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-11-10 03:39:00 +0000
commit6a53c8a2dd3b818ed4426c6de05a58ba1e1cdd0d (patch)
treec2a589917a4e1b82f96740cce7af001736a2793c
parent7cce717f348d3c7487b1dbf82b9f1f3a802ab82e (diff)
Fixed #2997 -- Fixed URLField validation in django.newforms. Thanks, jkocherhans
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/newforms/fields.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/newforms/fields.py b/django/newforms/fields.py
index 54089cb3c3..b9e2ed35c7 100644
--- a/django/newforms/fields.py
+++ b/django/newforms/fields.py
@@ -215,7 +215,7 @@ class URLField(RegexField):
"User-Agent": self.user_agent,
}
try:
- req = urllib2.Request(field_data, None, headers)
+ req = urllib2.Request(value, None, headers)
u = urllib2.urlopen(req)
except ValueError:
raise ValidationError(u'Enter a valid URL.')