We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb21bc0 commit 1aa222dCopy full SHA for 1aa222d
python/ql/test/library-tests/frameworks/aiohttp/taint_test.py
@@ -193,8 +193,16 @@ async def test_taint(request: web.Request): # $ requestHandler
193
)
194
195
196
+class TaintTestClass(web.View):
197
+ def get(self):
198
+ ensure_tainted(
199
+ self.request, # $ MISSING: tainted
200
+ )
201
+
202
203
app = web.Application()
204
app.router.add_get(r"/test_taint/{name}/{number:\d+}", test_taint) # $ routeSetup="/test_taint/{name}/{number:\d+}"
205
+app.router.add_view(r"/test_taint_class", TaintTestClass) # $ routeSetup="/test_taint_class"
206
207
208
if __name__ == "__main__":
0 commit comments