Browse files

filter environment keys through the controller's parameter filtering …

…settings (closes #8432)
  • Loading branch information...
1 parent 1d6ec3f commit 7f1d1743348c45bc0cbd7e6dd1b9fc55f4ed6406 @jamis jamis committed Nov 23, 2007
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/exception_notifier_helper.rb
View
3 lib/exception_notifier_helper.rb
@@ -72,6 +72,7 @@ def filter_sensitive_post_data_parameters(parameters)
def filter_sensitive_post_data_from_env(env_key, env_value)
return env_value unless exclude_raw_post_parameters?
- (env_key =~ /RAW_POST_DATA/i) ? PARAM_FILTER_REPLACEMENT : env_value
+ return PARAM_FILTER_REPLACEMENT if (env_key =~ /RAW_POST_DATA/i)
+ return @controller.filter_parameters({env_key => env_value}).values[0]
end
end

0 comments on commit 7f1d174

Please sign in to comment.