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

Changeset 8193

Show
Ignore:
Timestamp:
11/23/07 16:43:13 (1 year ago)
Author:
minam
Message:

filter environment keys through the controller's parameter filtering settings (closes #8432)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/exception_notification/lib/exception_notifier_helper.rb

    r7132 r8193  
    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