1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-03-10 12:21:11 +00:00

web/postkey/views.py: fix typo

This commit is contained in:
Hidden Z 2010-11-02 17:32:06 +00:00
parent 6e580ea449
commit d6881adba5

View File

@ -32,7 +32,7 @@ class AddForm(ModelForm):
if re.search(r'(^|\.)(i2p|i2p2|geti2p|mail|project|i2project|i2pproject|i2p-project).i2p$', data): if re.search(r'(^|\.)(i2p|i2p2|geti2p|mail|project|i2project|i2pproject|i2p-project).i2p$', data):
raise forms.ValidationError('Trying to use hostname from additional reserved set') raise forms.ValidationError('Trying to use hostname from additional reserved set')
if data.count('.') > 1: if data.count('.') > 1:
raise forms.ValidationError('Currently only 2-level domains are allowed') raise forms.ValidationError('Currently only 2-level domains are allowed')
return data return data
def clean_b64hash(self): def clean_b64hash(self):
"""Validate base64 hash""" """Validate base64 hash"""