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
This commit is contained in:
Adrian Holovaty 2006-11-10 03:39:00 +00:00
parent 7cce717f34
commit 6a53c8a2dd
1 changed files with 1 additions and 1 deletions

View File

@ -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.')