Skip to content

Commit

Permalink
Fix CVE-2011-0447 check
Browse files Browse the repository at this point in the history
move it outside of conditional
  • Loading branch information
presidentbeef committed Oct 27, 2016
1 parent 6dcf64a commit 5bbc529
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/brakeman/checks/check_forgery_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ def run_check
csrf_warning args
end

if controller.options[:protect_from_forgery]
check_cve_2011_0447
end
end

if controller.options[:protect_from_forgery]
check_cve_2011_0447
end
end
end
Expand Down

0 comments on commit 5bbc529

Please sign in to comment.