Browse Source

validation.py: fix typo in message

pull/1/head
Hidden Z 14 years ago
parent
commit
9ea9db109a
  1. 2
      web/lib/validation.py

2
web/lib/validation.py

@ -22,7 +22,7 @@ def validate_hostname(data):
raise forms.ValidationError('Hostname doesn\'t ends with .i2p') raise forms.ValidationError('Hostname doesn\'t ends with .i2p')
# Base 32 hostnames (*.b32.i2p) are not allowed # Base 32 hostnames (*.b32.i2p) are not allowed
if re.match(r'.*\.b32\.i2p$', data): if re.match(r'.*\.b32\.i2p$', data):
raise forms.ValidationError('Base 32 hostnames are not allowed') raise forms.ValidationError('Base32 hostnames are not allowed')
# Must not contain '..' # Must not contain '..'
if re.search(r'\.\.', data): if re.search(r'\.\.', data):
raise forms.ValidationError('".." in hostname') raise forms.ValidationError('".." in hostname')

Loading…
Cancel
Save