From 3b8ca02b65dbd34ebcd0da985a33546456b02e85 Mon Sep 17 00:00:00 2001 From: Nicholas Liccione Date: Mon, 5 Feb 2024 15:49:22 -0500 Subject: [PATCH] Added no QA to lines that aren't run in the unit tests anymore --- src/vulnpy/django/vulnerable_asgi.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/vulnpy/django/vulnerable_asgi.py b/src/vulnpy/django/vulnerable_asgi.py index 8b2d0e6..87804b2 100644 --- a/src/vulnpy/django/vulnerable_asgi.py +++ b/src/vulnpy/django/vulnerable_asgi.py @@ -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", "")