Ticket #6717: 6717-url-strip.diff
File 6717-url-strip.diff, 456 bytes (added by , 17 years ago) |
---|
-
django/newforms/fields.py
505 505 self.user_agent = validator_user_agent 506 506 507 507 def clean(self, value): 508 value = value.strip() 508 509 # If no URL scheme given, assume http:// 509 510 if value and '://' not in value: 510 511 value = u'http://%s' % value