mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
refactor the js/xss query to use three flowlabels and one configuration
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -476,12 +476,12 @@ function urlStuff() {
|
||||
$("<img>", {src: url}).appendTo("body"); // NOT OK
|
||||
$("<a>", {href: win.location.href}).appendTo("body"); // OK
|
||||
|
||||
$("<img>", {src: "http://google.com/" + url}).appendTo("body"); // OK - but flagged [INCONSISTENCY]
|
||||
$("<img>", {src: "http://google.com/" + url}).appendTo("body"); // OK
|
||||
|
||||
$("<img>", {src: ["http://google.com", url].join("/")}).appendTo("body"); // OK - but flagged [INCONSISTENCY]
|
||||
$("<img>", {src: ["http://google.com", url].join("/")}).appendTo("body"); // OK
|
||||
|
||||
if (url.startsWith("https://")) {
|
||||
$("<img>", {src: url}).appendTo("body"); // OK - but flagged [INCONSISTENCY]
|
||||
$("<img>", {src: url}).appendTo("body"); // OK
|
||||
} else {
|
||||
$("<img>", {src: url}).appendTo("body"); // NOT OK
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user