Skip to content

Commit 21b7a51

Browse files
committed
Add test case for req.path
1 parent 1479509 commit 21b7a51

File tree

2 files changed

+79
-1
lines changed

2 files changed

+79
-1
lines changed

javascript/ql/test/library-tests/frameworks/Express/src/express.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,9 @@ app.get('/some/non-xss1', function(req, res) {
6767
res.send(req.params.foo)
6868
foo(res);
6969
});
70+
71+
app.get('/some/xss3', function(req, res) {
72+
res.header("Content-Type", "text/html");
73+
res.send(req.path)
74+
foo(res);
75+
});

0 commit comments

Comments
 (0)