Update javascript/ql/test/query-tests/Security/CWE-116/IncompleteSanitization/UnsafeHtmlExpansion.js

Co-authored-by: Napalys Klicius <napalys@github.com>
This commit is contained in:
Asger F
2025-03-10 14:19:33 +01:00
committed by GitHub
parent 21d42bcd21
commit 92dfdc8194

View File

@@ -32,7 +32,7 @@
function getExpanded() {
return expanded;
}
html.replace(defaultPattern, getExpanded()); // MISSING: Alert - not tracking the expansion string
html.replace(defaultPattern, getExpanded()); // $ MISSING: Alert - not tracking the expansion string
html.replace(defaultPattern, something); // OK - possibly
defaultPattern.match(something); // OK - possibly
getPattern().match(something); // OK - possibly