We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 016bda0 commit 9504f36Copy full SHA for 9504f36
go/ql/lib/semmle/go/frameworks/stdlib/TextTemplate.qll
@@ -88,7 +88,7 @@ module TextTemplate {
88
private class ExecuteTemplateFieldReader extends DataFlow::ImplicitFieldReadNode {
89
override predicate shouldImplicitlyReadAllFields(DataFlow::Node n) {
90
exists(ExecuteTemplateMethod m, DataFlow::MethodCallNode cn |
91
- cn.getACalleeIncludingExternals().asFunction() = m and
+ cn.getTarget() = m and
92
n = cn.getArgument(m.getInputArgIdx())
93
)
94
}
0 commit comments