Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

filter environment keys through the controller's parameter filtering …

…settings (closes #8432)
  • Loading branch information...
commit 7f1d1743348c45bc0cbd7e6dd1b9fc55f4ed6406 1 parent 1d6ec3f
@jamis jamis authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.