From c3235bc1230af0b2ecd85fe4a5ef31c56c250d6b Mon Sep 17 00:00:00 2001 From: Justin Collins Date: Tue, 17 Jul 2012 15:47:31 -0700 Subject: [PATCH] Fix CheckFile access use of has_immediate_model? Although in the future has_immediate_model? should probably return a Match object --- lib/brakeman/checks/check_file_access.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/brakeman/checks/check_file_access.rb b/lib/brakeman/checks/check_file_access.rb index fecc0ec8..95766f7e 100644 --- a/lib/brakeman/checks/check_file_access.rb +++ b/lib/brakeman/checks/check_file_access.rb @@ -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) -- GitLab