Skip to content

Commit

Permalink
Added no QA to lines that aren't run in the unit tests anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
nliccione committed Feb 5, 2024
1 parent 50305d7 commit 3b8ca02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vulnpy/django/vulnerable_asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ async def _get_user_input(request):
and django.VERSION[0] < 4
and not request.GET.get("user_input")
):
header_user_input = request.META.get("HTTP_QUERY_STRING")
return urllib.parse.unquote(header_user_input.split("=", 1)[1])
header_user_input = request.META.get("HTTP_QUERY_STRING") # pragma: no cover
return urllib.parse.unquote(
header_user_input.split("=", 1)[1]
) # pragma: no cover

if request.method == "GET":
return request.GET.get("user_input", "")
Expand Down

0 comments on commit 3b8ca02

Please sign in to comment.