Sensitive values handling
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
385ec2947d
commit
bfaca7fc78
|
@ -92,8 +92,10 @@ class ExceptionSerializer {
|
|||
];
|
||||
|
||||
private function editTrace(array &$sensitiveValues, array $traceLine): array {
|
||||
$sensitiveValues = array_merge($sensitiveValues, $traceLine['args']);
|
||||
$traceLine['args'] = ['*** sensitive parameters replaced ***'];
|
||||
if (isset($traceLine['args'])) {
|
||||
$sensitiveValues = array_merge($sensitiveValues, $traceLine['args']);
|
||||
$traceLine['args'] = ['*** sensitive parameters replaced ***'];
|
||||
}
|
||||
return $traceLine;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue