Browse Source

validation.py: update docstring for validate_hostname()

pull/1/head
Hidden Z 14 years ago
parent
commit
5803016ec3
  1. 5
      web/lib/validation.py

5
web/lib/validation.py

@ -8,8 +8,9 @@ from web.postkey.models import i2phost
def validate_hostname(data): def validate_hostname(data):
""" """
Here we do additional hostname validation as described in Here we do hostname validation as described in
http://www.i2p2.i2p/naming.html http://www.i2p2.i2p/naming.html and some additional checks
described in http://zzz.i2p/topics/739
""" """
# convert hostname to lowercase and strip leading and trailing whitespaces # convert hostname to lowercase and strip leading and trailing whitespaces
data = data.lower().strip() data = data.lower().strip()

Loading…
Cancel
Save