mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
slightly limit viable template files from render calls
This commit is contained in:
@@ -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() + "%")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user