1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-02-02 09:55:52 +00:00

validation.py: update docstring for validate_hostname()

This commit is contained in:
Hidden Z 2010-10-22 18:38:33 +00:00
parent b5c5a4051c
commit 5803016ec3

View File

@ -8,8 +8,9 @@ from web.postkey.models import i2phost
def validate_hostname(data):
"""
Here we do additional hostname validation as described in
http://www.i2p2.i2p/naming.html
Here we do hostname validation as described in
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
data = data.lower().strip()