Mask PHP_AUTH_PW header in profiler
This commit is contained in:
parent
bc79f27f70
commit
e92b76c5ff
@ -99,6 +99,14 @@ class RequestDataCollector extends DataCollector implements EventSubscriberInter
|
||||
'locale' => $request->getLocale(),
|
||||
);
|
||||
|
||||
if (isset($this->data['request_headers']['php-auth-pw'])) {
|
||||
$this->data['request_headers']['php-auth-pw'] = '******';
|
||||
}
|
||||
|
||||
if (isset($this->data['request_server']['PHP_AUTH_PW'])) {
|
||||
$this->data['request_server']['PHP_AUTH_PW'] = '******';
|
||||
}
|
||||
|
||||
if (isset($this->controllers[$request])) {
|
||||
$controller = $this->controllers[$request];
|
||||
if (is_array($controller)) {
|
||||
|
Reference in New Issue
Block a user