From: Caleb Forbes Davis V Date: Wed, 6 Jul 2011 03:11:56 +0000 (-0500) Subject: B #429 - form validation allows blank profile url X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=20d82d604620c8aa885ba0f8109a1a1d3dd6632d;p=mediagoblin.git B #429 - form validation allows blank profile url --- diff --git a/mediagoblin/edit/forms.py b/mediagoblin/edit/forms.py index 2efdb9e4..d5e7f0a9 100644 --- a/mediagoblin/edit/forms.py +++ b/mediagoblin/edit/forms.py @@ -31,4 +31,5 @@ class EditProfileForm(wtforms.Form): [wtforms.validators.Length(min=0, max=500)]) url = wtforms.TextField( 'Website', - [wtforms.validators.URL(message='Improperly formed URL')]) + [wtforms.validators.Optional(), + wtforms.validators.URL(message='Improperly formed URL')])