Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11578: 0001-Patch-adds-commented-filter_parameter_logging-pass.patch

File 0001-Patch-adds-commented-filter_parameter_logging-pass.patch, 1.2 kB (added by yaroslav, 2 months ago)

final patch (git-format-patch)

  • a/railties/helpers/application.rb

    old new  
    77  # See ActionController::RequestForgeryProtection for details 
    88  # Uncomment the :secret if you're not using the cookie session store 
    99  protect_from_forgery # :secret => '<%= app_secret %>' 
     10   
     11  # See ActionController::Base for details 
     12  # Uncomment this to filter the contents of submitted sensitive data parameters from your application log (in this case, all fields with names like "password"). 
     13  # filter_parameter_logging :password  
    1014end