Skip to content

Commit 3ab5fd5

Browse files
committed
Add RestFramework handler kwargs
1 parent e7384da commit 3ab5fd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/ql/lib/semmle/python/frameworks/RestFramework.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ private module RestFramework {
194194
exists(RestFrameworkApiViewClass vc |
195195
this.getParameter() =
196196
vc.getARequestHandler().(PrivateDjango::DjangoRouteHandler).getRequestParam()
197+
or
198+
// retrieve(self, request, **kwargs)
199+
this.getParameter() = vc.getARequestHandler().(PrivateDjango::DjangoRouteHandler).getKwarg()
197200
)
198201
or
199202
// annotated with @api_view decorator

0 commit comments

Comments
 (0)