mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
JS: Added test case for bad sanitizer with unknown flags, currently not flagged.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user