From d9383d9412f610ae7dd7b79dc8989eea58dddcbf Mon Sep 17 00:00:00 2001 From: Sauyon Lee Date: Mon, 27 Sep 2021 22:48:14 -0700 Subject: [PATCH] Don't use internal predicates in revel --- ql/lib/semmle/go/frameworks/Revel.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/lib/semmle/go/frameworks/Revel.qll b/ql/lib/semmle/go/frameworks/Revel.qll index dae0547f9fb..f55d49e97f3 100644 --- a/ql/lib/semmle/go/frameworks/Revel.qll +++ b/ql/lib/semmle/go/frameworks/Revel.qll @@ -294,7 +294,7 @@ module Revel { exists(Type controllerType, string controllerRe, string handlerRe, string pathRe | controllerType = skipImplicitFieldReads(this.getReceiver().asInstruction()).getResultType() and controllerRe = "\\Q" + controllerType.getName() + "\\E" and - handlerRe = "\\Q" + this.getEnclosingCallable().getName() + "\\E" and + handlerRe = "\\Q" + this.asExpr().getEnclosingFunction().getName() + "\\E" and // find a file named '/views//(.