php-debugbar
php-debugbar copied to clipboard
RequestDataCollector: How to mask passwords?
Background: So far, I had only displayed debug data related to the current request. However, I have recently switched to FileStorage to debug non-HTML requests with more data than could fit into the headers.
Problem: The RequestData collects the POSTed password during login, password change etc.
Question: How can I prevent the password from appearing among the debug data?
PS: Ideally I would tell the RequestDataCollector to mask certain fields like Sentry's sanitizeKeys:
