Skip to content

Commit ac0fa17

Browse files
authored
Merge pull request rails#52413 from ghiculescu/filter-param-card
Add `cvv` and `card_` as default parameters to filter out in new apps
2 parents bfd3cfd + 53a52e3 commit ac0fa17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

railties/lib/rails/generators/rails/app/templates/config/initializers/filter_parameter_logging.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# Use this to limit dissemination of sensitive information.
55
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
66
Rails.application.config.filter_parameters += [
7-
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn
7+
:passw, :email, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, :cvv, :cvc
88
]

0 commit comments

Comments
 (0)