mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-22 20:44:55 +00:00
web/postkey/views.py: fix typo
This commit is contained in:
parent
d6c360605b
commit
150de19f32
@ -33,7 +33,7 @@ class AddForm(ModelForm):
|
|||||||
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('Base 32 hostnames are not allowed')
|
||||||
# Must contain only [a-z] [0-9] '.' and '-'
|
# Must contain only [a-z] [0-9] '.' and '-'
|
||||||
h = re.match(r'([a-z0-9.-]+)\.i2p$', data)
|
h = re.match(r'([a-z0-9.-]+)\.i2p$', data)
|
||||||
if h == None:
|
if h == None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user