提交 b5a7c2fa 编写于 作者: J Justin Collins

Fix checking for rendered templates in rescan

of changed controllers
上级 5539f68c
......@@ -115,8 +115,9 @@ class Brakeman::Rescanner < Brakeman::Scanner
#from the controller
tracker.controllers.each do |name, controller|
if controller[:file] == path
tracker.templates.keys.each do |template_name|
if template_name.to_s.match /(.+)\.#{name}#/
tracker.templates.each do |template_name, template|
next unless template[:caller]
unless template[:caller].grep(/^#{name}#/).empty?
tracker.reset_template template_name
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册