mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Update javascript/ql/test/query-tests/Security/CWE-020/IncompleteUrlSchemeCheck.js
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
committed by
GitHub
parent
76bce40a8b
commit
e172d55ecb
@@ -92,7 +92,7 @@ function test12(url) {
|
||||
function test13(url) {
|
||||
let scheme = goog.uri.utils.getScheme(url);
|
||||
switch (scheme) {
|
||||
case "javascript": // NOT OK - but not detected due to lack of `switch` support
|
||||
case "javascript": // NOT OK
|
||||
case "data":
|
||||
return "about:blank";
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user