Added test case for escape.

This commit is contained in:
Napalys
2025-03-14 08:48:45 +01:00
parent a3ef137a8e
commit c4b717b86c

View File

@@ -208,3 +208,10 @@ var server = http.createServer(function(req, res) {
}
});
var srv = http.createServer(function(req, res) {
let path = url.parse(req.url, true).query.path; // $ MISSING: Source
const improperEscape = escape(path);
res.write(fs.readFileSync(improperEscape)); // $ MISSING: Alert
const improperEscape2 = unescape(path);
res.write(fs.readFileSync(improperEscape2)); // $ MISSING: Alert
});