mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Another instance of getEnclosingFunction -> getRoot
This commit is contained in:
@@ -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/<controller>/<handler>(.<template type>).html
|
||||
pathRe = "/views/" + controllerRe + "/" + handlerRe + "(\\..*)?\\.html?"
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user