1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-29 16:04:15 +00:00

validation.py: fix typo in message

This commit is contained in:
Hidden Z 2010-10-22 18:31:46 +00:00
parent 2ab7b2de5f
commit 9ea9db109a

View File

@ -22,7 +22,7 @@ def validate_hostname(data):
raise forms.ValidationError('Hostname doesn\'t ends with .i2p')
# Base 32 hostnames (*.b32.i2p) are not allowed
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 '..'
if re.search(r'\.\.', data):
raise forms.ValidationError('".." in hostname')