Skip to content

Commit c1bb40f

Browse files
asgerferik-krogh
andcommitted
Update javascript/ql/lib/semmle/javascript/frameworks/Express.qll
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent b2016bd commit c1bb40f

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,12 @@ module Express {
106106
* require('express-limiter')(app, client)({ method: 'get', path: '/foo' });
107107
* ```
108108
*/
109-
private class RateLimiterRouteSetup extends Routing::RouteSetup::Range {
109+
private class RateLimiterRouteSetup extends Routing::RouteSetup::Range, DataFlow::CallNode {
110110
DataFlow::CallNode limitCall;
111111

112112
RateLimiterRouteSetup() {
113113
limitCall = DataFlow::moduleImport("express-limiter").getACall() and
114-
exists(this.(DataFlow::CallNode).getOptionArgument(0, ["path", "method"])) and
114+
exists(this.getOptionArgument(0, ["path", "method"])) and
115115
this = limitCall.getACall()
116116
}
117117

0 commit comments

Comments
 (0)