Browse Source

web/lib/validation.py: add comment

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

1
web/lib/validation.py

@ -48,6 +48,7 @@ def validate_b64hash(data, check_uniq=True): @@ -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…
Cancel
Save