You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surely I must be doing something wrong, but it seems like scrubFields doesn't properly deal with paths (e.g. request.session.myKey).
I'm using v1.8.1 and have checked what happens in Scrubber::scrubArray:114. $fields is the scrubFields array from the configuration literal, which includes paths (e.g. request.session.myKey). $key, on the other hand, is always only the last part (e.g. myKey).
It looks like the code should check isset($fields[strtolower($current)]) as well as isset($fields[strtolower($key)]) maybe?
Bump! Have same problem. For example i want to scrub request.body. Because when I send payload as json string, it is not scrubbed. When i set body or request in scrubFields api calls fails.
Surely I must be doing something wrong, but it seems like
scrubFields
doesn't properly deal with paths (e.g.request.session.myKey
).I'm using v1.8.1 and have checked what happens in
Scrubber::scrubArray:114
.$fields
is thescrubFields
array from the configuration literal, which includes paths (e.g.request.session.myKey
).$key
, on the other hand, is always only the last part (e.g.myKey
).It looks like the code should check
isset($fields[strtolower($current)])
as well asisset($fields[strtolower($key)])
maybe?As an example:
Does not scrub
myKey
, whiledoes.
The documentation actually lists a couple of path values in the defaults (e.g.
request.session.csrf_
), so I fully expect this to work.The text was updated successfully, but these errors were encountered: