JS: Added test case for bad sanitizer with unknown flags, currently not flagged.

This commit is contained in:
Napalys
2024-11-26 09:35:27 +01:00
parent 38be0e4c0a
commit 89f3b6f8d3

View File

@@ -332,3 +332,7 @@ function incompleteComplexSanitizers() {
function typicalBadHtmlSanitizers(s) {
s().replace(new RegExp("[<>]", "g"),''); // NOT OK
}
function typicalBadHtmlSanitizers(s) {
s().replace(new RegExp("[<>]", unknown()),''); // NOT OK -- should be flagged, because it is st ill a bad sanitizer
}