module
ActionDispatch::Http::FilterParameters
v8.0.0 -
Show latest stable
# Action Dispatch HTTP Filter Parameters
Allows you to specify sensitive query string and POST parameters to filter from the request log.
# Replaces values with "[FILTERED]" for keys that match /foo|bar/i. env["action_dispatch.parameter_filter"] = [:foo, "bar"]
For more information about filter behavior, see ActiveSupport::ParameterFilter.
Constants
ENV_MATCH = [/RAW_POST_DATA/, "rack.request.form_vars"]
NULL_ENV_FILTER = ActiveSupport::ParameterFilter.new ENV_MATCH
NULL_PARAM_FILTER = ActiveSupport::ParameterFilter.new # :nodoc:
Files
- actionpack/lib/action_dispatch/http/filter_parameters.rb