From 63b944a1b4428ca413fc159521fdf0020ee16ffd Mon Sep 17 00:00:00 2001 From: Owen Mansel-Chan Date: Sun, 5 Dec 2021 06:47:10 -0500 Subject: [PATCH] Another instance of getEnclosingFunction -> getRoot --- 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 f55d49e97f3..62f038d9120 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.asExpr().getEnclosingFunction().getName() + "\\E" and + handlerRe = "\\Q" + this.getRoot().(FuncDef).getName() + "\\E" and // find a file named '/views//(.