Skip to content

Commit 0dc4738

Browse files
committed
Swap order of equality for easier comprehension
1 parent b58e882 commit 0dc4738

File tree

1 file changed

+2
-2
lines changed
  • go/ql/lib/semmle/go/security

1 file changed

+2
-2
lines changed

go/ql/lib/semmle/go/security/Xss.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ module SharedXss {
143143
HtmlTemplateSanitizer() {
144144
exists(Method m, DataFlow::CallNode call | m = call.getCall().getTarget() |
145145
m.hasQualifiedName("html/template", "Template", "ExecuteTemplate") and
146-
call.getArgument(2) = this
146+
this = call.getArgument(2)
147147
or
148148
m.hasQualifiedName("html/template", "Template", "Execute") and
149-
call.getArgument(1) = this
149+
this = call.getArgument(1)
150150
)
151151
}
152152
}

0 commit comments

Comments
 (0)