Skip to content

Commit 022a0c9

Browse files
committed
Merge branch 'hotfix/rails_52_if_no_defaults' of github.com:montdidier/brakeman into montdidier-hotfix/rails_52_if_no_defaults
2 parents dd9ba8b + aba023b commit 022a0c9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/brakeman/tracker/config.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ def initialize tracker
2020

2121
def default_protect_from_forgery?
2222
if version_between? "5.2.0.beta1", "9.9.9"
23-
if @rails.dig(:action_controller, :default_protect_from_forgery) == Sexp.new(:false)
24-
return false
25-
else
23+
if @rails.dig(:action_controller, :default_protect_from_forgery) == Sexp.new(:true)
2624
return true
2725
end
2826
end

0 commit comments

Comments
 (0)