Skip to content

Commit 213cabc

Browse files
committed
JS: Test with file more extensions
1 parent ea2ddf8 commit 213cabc

File tree

1 file changed

+8
-1
lines changed
  • javascript/ql/test/library-tests/frameworks/Templating

1 file changed

+8
-1
lines changed

javascript/ql/test/library-tests/frameworks/Templating/app.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,14 @@ app.get('/angularjs', (req, res) => {
6868
});
6969

7070
app.get('/dotjs', (req, res) => {
71+
// Currently we don't auto-insert the full .html.dot extension. Test all variations.
72+
res.render('dot_sinks.html.dot', {
73+
tainted: req.query.foo,
74+
});
75+
res.render('dot_sinks.html', {
76+
tainted: req.query.foo,
77+
});
7178
res.render('dot_sinks', {
7279
tainted: req.query.foo,
7380
});
74-
});
81+
});

0 commit comments

Comments
 (0)