Skip to content

Commit

Permalink
Merge pull request #247 from betesh/master
Browse files Browse the repository at this point in the history
improved Sinatra example by making it use the ParameterFilter correctly for better security
  • Loading branch information
smartinez87 committed Nov 18, 2014
2 parents 9341d9a + 118908a commit 1860cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/sinatra/sinatra_app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
require 'exception_notification'

class SinatraApp < Sinatra::Base
use Rack::Config do |env|
env["action_dispatch.parameter_filter"] = [:password] # This is highly recommended. It will prevent the ExceptionNotification email from including your users' passwords
end

use ExceptionNotification::Rack,
:email => {
:email_prefix => "[Example] ",
Expand Down

0 comments on commit 1860cf8

Please sign in to comment.