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

Ticket #8432: exception_notifier_helper.patch

File exception_notifier_helper.patch, 0.6 kB (added by igotimac, 1 year ago)

patch to filter on the environment as well

  • lib/exception_notifier_helper.rb

    old new  
    7272   
    7373  def filter_sensitive_post_data_from_env(env_key, env_value) 
    7474    return env_value unless exclude_raw_post_parameters? 
    75     (env_key =~ /RAW_POST_DATA/i) ? PARAM_FILTER_REPLACEMENT : env_value 
     75    return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i) 
     76    return @controller.filter_parameters({env_key => env_value}).values[0] 
    7677  end 
    7778end