slightly limit viable template files from render calls

This commit is contained in:
Alex Ford
2021-10-11 17:12:08 +01:00
parent cdfee1f27d
commit 7270fe0ee7

View File

@@ -97,7 +97,7 @@ abstract class RenderCall extends MethodCall {
*/
ErbFile getTemplateFile() {
result.getTemplateName() = this.getBaseName() and
result.getRelativePath().matches("%/" + this.getSubPath() + "%")
result.getRelativePath().matches("%app/views/" + this.getSubPath() + "%")
}
/**