mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
Python: Accept .expected changes
Note that in this case, since there is a known `django.urls.path` route-setup, we know that the request-handler will only be passed keyword arguments, so it is not a mistake that `*args` is not considered a routed-parameter here (although it certainly wouldn't have hurt us if we did consider it a routed-parameter either).
This commit is contained in:
@@ -90,7 +90,7 @@ def test_taint(request: Request, routed_param): # $ requestHandler routedParamet
|
||||
|
||||
|
||||
class MyClass(APIView):
|
||||
def initial(self, request, *args, **kwargs): # $ requestHandler
|
||||
def initial(self, request, *args, **kwargs): # $ requestHandler routedParameter=kwargs
|
||||
# this method will be called before processing any request
|
||||
ensure_tainted(request) # $ tainted
|
||||
|
||||
|
||||
Reference in New Issue
Block a user