Browse Source

web/lib/validation.py: disallow *b32.i2p and *b64.i2p

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

2
web/lib/validation.py

@ -51,7 +51,7 @@ def validate_hostname(data): @@ -51,7 +51,7 @@ def validate_hostname(data):
if re.search(r'(?<!^xn)--', namepart) and re.search(r'(?<!\.xn)--', namepart):
raise forms.ValidationError('Hostname contain "--" and it\'s not an IDN')
# Certain hostnames reserved for project use are not allowed
if re.search(r'(^|\.)(proxy|router|console)$', namepart):
if re.search(r'(^|\.)(proxy|router|console|b32|b64)$', namepart):
raise forms.ValidationError('Trying to use reserved hostname')
return data

Loading…
Cancel
Save