Skip to content

Commit

Permalink
Merge pull request #2 from kobsy/dup-env
Browse files Browse the repository at this point in the history
Avoid modifying POST params on env while checking for CSRF token
  • Loading branch information
sikachu authored Jun 4, 2019
2 parents b377533 + 08d506c commit fc0d864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/omniauth/rails_csrf_protection/token_verifier.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class TokenVerifier
end

def call(env)
@request = ActionDispatch::Request.new(env)
@request = ActionDispatch::Request.new(env.dup)

unless verified_request?
raise ActionController::InvalidAuthenticityToken
Expand Down

0 comments on commit fc0d864

Please sign in to comment.