mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Don't use internal predicates in revel
This commit is contained in:
committed by
Owen Mansel-Chan
parent
73684f483c
commit
d9383d9412
@@ -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/<controller>/<handler>(.<template type>).html
|
||||
pathRe = "/views/" + controllerRe + "/" + handlerRe + "(\\..*)?\\.html?"
|
||||
|
|
||||
|
||||
Reference in New Issue
Block a user