Sensitive values handling

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2019-11-21 22:25:08 +01:00
parent 385ec2947d
commit bfaca7fc78
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}