diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-21 22:25:08 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-11-27 13:34:41 +0100 |
commit | bfaca7fc78680f8efa4405d497a13a32e760b7ba (patch) | |
tree | 3ec39702105121897b33832cb173ca6af747ad40 /lib/private/Log/ExceptionSerializer.php | |
parent | 385ec2947dd72d02fd951774c52230f740341d33 (diff) | |
download | nextcloud-server-bfaca7fc78680f8efa4405d497a13a32e760b7ba.tar.gz nextcloud-server-bfaca7fc78680f8efa4405d497a13a32e760b7ba.zip |
Sensitive values handling
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Log/ExceptionSerializer.php')
-rw-r--r-- | lib/private/Log/ExceptionSerializer.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php index 8cfdb57b225..fe28120b392 100644 --- a/lib/private/Log/ExceptionSerializer.php +++ b/lib/private/Log/ExceptionSerializer.php @@ -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; } |