Skip to content

Commit 798b03f

Browse files
mbaludaerik-krogh
andauthored
code generalization
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 784475d commit 798b03f

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ module Hapi {
235235
this.getMethodName() = "route" and
236236
handler =
237237
this.getArgument(0)
238-
.(DataFlow::ArrayLiteralNode)
238+
.getALocalSource()
239+
.(DataFlow::ArrayCreationNode)
239240
.getAnElement()
240241
.(DataFlow::ObjectLiteralNode)
241242
.getAPropertySource("handler")

0 commit comments

Comments
 (0)