Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Pass our logger to rack-protection. Fixes #1236.

  • Loading branch information...
commit 39fc7f1c3319d2f7d7292bc7e675bb49b2c12f66 1 parent 4f679c7
Darío Javier Cravero authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 padrino-core/lib/padrino-core/application.rb
View
6 padrino-core/lib/padrino-core/application.rb
@@ -280,9 +280,11 @@ def setup_csrf_protection(builder)
if allow_disabled_csrf?
builder.use Rack::Protection::AuthenticityToken,
:reaction => :report,
- :report_key => 'protection.csrf.failed'
+ :report_key => 'protection.csrf.failed',
+ :logger => logger
else
- builder.use Rack::Protection::AuthenticityToken
+ builder.use Rack::Protection::AuthenticityToken,
+ :logger => logger
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.