mirror of
https://github.com/jazzband/django-axes.git
synced 2026-05-09 16:14:46 +00:00
Submitting null byte chars like in the post data causes the save to database crash with the following:
/lib/python3.7/site-packages/django/db/backends/utils.py", line 86, in _execute
return self.cursor.execute(sql, params)
ValueError: A string literal cannot contain NUL (0x00) characters.
I propose replacing these to something more palatable to the django ORM, and allowing axes to continue its work and block users with multiple failed login attempts that contain NUL characters.
|
||
|---|---|---|
| .. | ||
| handlers | ||
| locale | ||
| management | ||
| migrations | ||
| tests | ||
| __init__.py | ||
| admin.py | ||
| apps.py | ||
| attempts.py | ||
| backends.py | ||
| checks.py | ||
| conf.py | ||
| decorators.py | ||
| exceptions.py | ||
| helpers.py | ||
| middleware.py | ||
| models.py | ||
| signals.py | ||
| utils.py | ||