Skip to content

Commit

Permalink
Merge branch 'hotfix/rails_52_if_no_defaults' of github.com:montdidie…
Browse files Browse the repository at this point in the history
…r/brakeman into montdidier-hotfix/rails_52_if_no_defaults
  • Loading branch information
presidentbeef committed Apr 19, 2023
2 parents dd9ba8b + aba023b commit 022a0c9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/brakeman/tracker/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ def initialize tracker

def default_protect_from_forgery?
if version_between? "5.2.0.beta1", "9.9.9"
if @rails.dig(:action_controller, :default_protect_from_forgery) == Sexp.new(:false)
return false
else
if @rails.dig(:action_controller, :default_protect_from_forgery) == Sexp.new(:true)
return true
end
end
Expand Down

0 comments on commit 022a0c9

Please sign in to comment.