mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
13 lines
399 B
JavaScript
13 lines
399 B
JavaScript
// XSS — unsupported fixture.
|
|
// Entry is a class method rather than a top-level function.
|
|
// Test sets confidence = Low to get Unsupported(ConfidenceTooLow).
|
|
// Entry: TemplateEngine.render(input) Cap: HTML_ESCAPE
|
|
// Expected verdict: Unsupported
|
|
|
|
class TemplateEngine {
|
|
render(input) {
|
|
return '<html><body>' + input + '</body></html>';
|
|
}
|
|
}
|
|
|
|
module.exports = { TemplateEngine };
|