Skip to content

Commit 7270fe0

Browse files
committed
slightly limit viable template files from render calls
1 parent cdfee1f commit 7270fe0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ql/lib/codeql/ruby/frameworks/ActionView.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ abstract class RenderCall extends MethodCall {
9797
*/
9898
ErbFile getTemplateFile() {
9999
result.getTemplateName() = this.getBaseName() and
100-
result.getRelativePath().matches("%/" + this.getSubPath() + "%")
100+
result.getRelativePath().matches("%app/views/" + this.getSubPath() + "%")
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)