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 9964902 commit 117f009Copy full SHA for 117f009
javascript/ql/src/semmle/javascript/frameworks/Express.qll
@@ -119,7 +119,12 @@ module Express {
119
t.start() and
120
result = getARouteHandlerExpr().flow().getALocalSource()
121
or
122
- exists(DataFlow::TypeBackTracker t2 | result = getARouteHandler(t2).backtrack(t2, t))
+ exists(DataFlow::TypeBackTracker t2, DataFlow::SourceNode succ | succ = getARouteHandler(t2) |
123
+ result = succ.backtrack(t2, t)
124
+ or
125
+ exists(HTTP::RouteHandlerCandidateContainer container | result = container.getRouteHandler(succ)) and
126
+ t = t2
127
+ )
128
}
129
130
override Expr getServer() { result.(Application).getARouteHandler() = getARouteHandler() }
0 commit comments