Browse files

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
  • Loading branch information...
1 parent 7cce717 commit 6a53c8a2dd3b818ed4426c6de05a58ba1e1cdd0d @adrianholovaty adrianholovaty committed Nov 10, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/newforms/fields.py
View
2 django/newforms/fields.py
@@ -215,7 +215,7 @@ def clean(self, value):
"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.')

0 comments on commit 6a53c8a

Please sign in to comment.