We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 649e9a8 commit 9861af8Copy full SHA for 9861af8
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