Skip to content
Snippets Groups Projects
Unverified Commit bfaca7fc authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Sensitive values handling

parent 385ec294
No related branches found
No related tags found
No related merge requests found
...@@ -92,8 +92,10 @@ class ExceptionSerializer { ...@@ -92,8 +92,10 @@ class ExceptionSerializer {
]; ];
private function editTrace(array &$sensitiveValues, array $traceLine): array { private function editTrace(array &$sensitiveValues, array $traceLine): array {
$sensitiveValues = array_merge($sensitiveValues, $traceLine['args']); if (isset($traceLine['args'])) {
$traceLine['args'] = ['*** sensitive parameters replaced ***']; $sensitiveValues = array_merge($sensitiveValues, $traceLine['args']);
$traceLine['args'] = ['*** sensitive parameters replaced ***'];
}
return $traceLine; return $traceLine;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment