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:
parent
b5c5a4051c
commit
5803016ec3
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user