mirror of
https://github.com/github/codeql.git
synced 2026-02-12 05:01:06 +01:00
Swap order of equality for easier comprehension
This commit is contained in:
@@ -143,10 +143,10 @@ module SharedXss {
|
||||
HtmlTemplateSanitizer() {
|
||||
exists(Method m, DataFlow::CallNode call | m = call.getCall().getTarget() |
|
||||
m.hasQualifiedName("html/template", "Template", "ExecuteTemplate") and
|
||||
call.getArgument(2) = this
|
||||
this = call.getArgument(2)
|
||||
or
|
||||
m.hasQualifiedName("html/template", "Template", "Execute") and
|
||||
call.getArgument(1) = this
|
||||
this = call.getArgument(1)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user