Swap order of equality for easier comprehension

This commit is contained in:
Owen Mansel-Chan
2026-01-06 23:24:32 +00:00
parent b58e88291e
commit 0dc47380a3

View File

@@ -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)
)
}
}