Update javascript/ql/lib/semmle/javascript/frameworks/Hapi.qll

Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
Mauro Baluda
2022-11-15 16:27:21 +01:00
committed by GitHub
parent e5e3bb3705
commit 8109a7b67a

View File

@@ -32,7 +32,7 @@ module Hapi {
exists(ServerDefinition server, DataFlow::MethodCallNode call |
call = server.ref().getAMethodCall() and
call.getMethodName() = "dependency" and
this = call.getArgument(1).(DataFlow::FunctionNode).getParameter(0)
this = call.getABoundCallbackParameter(1, 0)
)
}
}