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

Fix CheckFile access use of has_immediate_model?

Although in the future has_immediate_model? should
probably return a Match object
上级 ffc924dd
......@@ -32,6 +32,7 @@ class Brakeman::CheckFileAccess < Brakeman::BaseCheck
if match = has_immediate_user_input?(file_name)
confidence = CONFIDENCE[:high]
elsif match = has_immediate_model?(file_name)
match = Match.new(:model, match)
confidence = CONFIDENCE[:med]
elsif tracker.options[:check_arguments] and
match = include_user_input?(file_name)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册