module
ActionDispatch::Http::FilterParameters
rails 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"]
KV_RE = "[^&;=]+"
NULL_ENV_FILTER = ActiveSupport::ParameterFilter.new ENV_MATCH
NULL_PARAM_FILTER = ActiveSupport::ParameterFilter.new # :nodoc:
PAIR_RE = %r{(#{KV_RE})=(#{KV_RE})}
Files
- actionpack/lib/action_dispatch/http/filter_parameters.rb