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//(.