-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sanitizer#filter_key? returns a warning for Numeric hash keys #530
Comments
Do you have code or config that can trigger the warning? |
From our config:
I'm not sure what is exactly being passed in to trigger this (the stacktrace isn't showing up on honeybadger, maybe because it's triggered from within). The specific message is
|
I know that our application sometimes constructs arrays with integer keys (i.e. |
Thanks for the info! I'll take a look. :) |
v5.8.0 has this fix |
As currently defined,
filter_key?
calls=~
on its parameter. When sanitizing a hash, keys can technically be anything.=~
as defined onObject
is deprecated. So thefilter_key?
parameter should either be converted to a string (could change behavior) or the filters should be skipped if the key doesn't have=~
defined itself, or in a superclass that is notObject
The text was updated successfully, but these errors were encountered: