1
0
mirror of https://github.com/r4sas/py-i2phosts synced 2025-01-10 06:47:58 +00:00
Commit Graph

4 Commits

Author SHA1 Message Date
Hidden Z
2b535dbf2b web/lib/validation.py: new b64 length check
b64 hash shouldn't be longer than 616 bytes. We already have length
limit in database model, but this way we can provide our custom error
message.
2010-10-21 18:40:02 +00:00
Hidden Z
bc3118ab44 web/lib/validation.py: call len() for "data" only once
Sort of optimisation.
2010-10-21 18:38:57 +00:00
Hidden Z
f3a79838e6 web/lib/validation.py: fix base64 validations according to zzz's explanation 2010-10-16 19:03:54 +00:00
Hidden Z
2769f0d4bc Move validation functions to separate module 2010-10-16 18:30:08 +00:00