JS: Test with file more extensions

This commit is contained in:
Asger F
2023-08-04 14:24:51 +02:00
parent ea2ddf8905
commit 213cabccc0

View File

@@ -68,7 +68,14 @@ app.get('/angularjs', (req, res) => {
});
app.get('/dotjs', (req, res) => {
// Currently we don't auto-insert the full .html.dot extension. Test all variations.
res.render('dot_sinks.html.dot', {
tainted: req.query.foo,
});
res.render('dot_sinks.html', {
tainted: req.query.foo,
});
res.render('dot_sinks', {
tainted: req.query.foo,
});
});
});