Commit Graph
1 Commits
Author SHA1 Message Date
Lauri Ojansivu 73fcfb8545 Answer a test's HTTPS request without echoing it back.
CodeQL alert #583 (js/reflected-xss): tests/httpsServer.test.cjs's server
answered `served ${req.url} ...`, sending the request back as the body. It
now names the page by comparison, as plain text.
tests/noReflectedRequest.test.cjs keeps the shape out of every file: no
res.end/res.write/res.send writes a request's url, query, params, headers or
body into the response. Test code only, so nothing for Admin Panel / Problems
to record.

Thanks to GitHub CodeQL and xet7 !
2026-10-14 11:05:15 +03:00