Skip to content

Commit ae7d50a

Browse files
committed
JS: Accept some more alerts
1 parent b6910f5 commit ae7d50a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/ql/test/query-tests/Security/CWE-770/MissingRateLimit/MissingRateLimiting.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ app.get('/:path', function(req, res) {
55
let path = req.params.path;
66
if (isValidPath(path))
77
res.sendFile(path);
8-
});
8+
}); // $ Alert
99

1010
function f1(req, res) {
1111
let path = req.params.path;
@@ -22,4 +22,4 @@ function f3(req, res) {
2222
res.sendFile(path);
2323
}
2424

25-
app.get('/:path', f1, f2, f3);
25+
app.get('/:path', f1, f2, f3); // $ Alert

0 commit comments

Comments
 (0)