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 b2016bd commit c1bb40fCopy full SHA for c1bb40f
javascript/ql/lib/semmle/javascript/frameworks/Express.qll
@@ -106,12 +106,12 @@ module Express {
106
* require('express-limiter')(app, client)({ method: 'get', path: '/foo' });
107
* ```
108
*/
109
- private class RateLimiterRouteSetup extends Routing::RouteSetup::Range {
+ private class RateLimiterRouteSetup extends Routing::RouteSetup::Range, DataFlow::CallNode {
110
DataFlow::CallNode limitCall;
111
112
RateLimiterRouteSetup() {
113
limitCall = DataFlow::moduleImport("express-limiter").getACall() and
114
- exists(this.(DataFlow::CallNode).getOptionArgument(0, ["path", "method"])) and
+ exists(this.getOptionArgument(0, ["path", "method"])) and
115
this = limitCall.getACall()
116
}
117
0 commit comments