Skip to content

Commit

Permalink
Merge pull request from GHSA-9vh9-cxm2-p2c4
Browse files Browse the repository at this point in the history
  • Loading branch information
stsewd committed Nov 16, 2023
1 parent 4522650 commit 9c4546c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readthedocs/core/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def __call__(self, request):
url=request.build_absolute_uri(),
)
return HttpResponse(
f"There are NULL (0x00) characters in at least one of the parameters ({key}) passed to the request.", # noqa
"There are NULL (0x00) characters in at least one of the parameters passed to the request.",
status=400,
)
return self.get_response(request)
2 changes: 1 addition & 1 deletion readthedocs/rtd_tests/tests/test_middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,6 @@ def test_request_with_null_chars(self):
response = self.middleware(request)
self.assertContains(
response,
"There are NULL (0x00) characters in at least one of the parameters (language) passed to the request.",
"There are NULL (0x00) characters in at least one of the parameters passed to the request.",
status_code=400,
)

0 comments on commit 9c4546c

Please sign in to comment.