Fix code formatting for linter

This commit is contained in:
Aleksi Häkli 2020-03-23 13:58:12 +02:00 committed by GitHub
parent 3d32483dae
commit 344a97c694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,8 +95,8 @@ class AxesDatabaseHandler(AxesHandler): # pylint: disable=too-many-locals
)
# This replaces null byte chars that crash saving failures, meaning an attacker doesn't get locked out.
get_data = get_query_str(request.GET).replace('\0', '0x00')
post_data = get_query_str(request.POST).replace('\0', '0x00')
get_data = get_query_str(request.GET).replace("\0", "0x00")
post_data = get_query_str(request.POST).replace("\0", "0x00")
if self.is_whitelisted(request, credentials):
log.info("AXES: Login failed from whitelisted client %s.", client_str)