mirror of
https://github.com/r4sas/py-i2phosts
synced 2025-01-29 16:04:15 +00:00
web/lib/validation.py: add comment
This commit is contained in:
parent
bb2582c62c
commit
6a50774e5f
@ -48,6 +48,7 @@ def validate_b64hash(data, check_uniq=True):
|
||||
# Minimum key length 516 bytes
|
||||
if length < 516:
|
||||
raise forms.ValidationError('Specified base64 hash are less than 516 bytes')
|
||||
# Maximum key length 616 bytes
|
||||
if length > 616:
|
||||
raise forms.ValidationError('Specified base64 hash are bigger than 616 bytes')
|
||||
# keys with cert may ends with anything, so check is relaxed
|
||||
|
Loading…
x
Reference in New Issue
Block a user