]> source.dussan.org Git - nextcloud-server.git/commitdiff
Sensitive values handling
authorRoeland Jago Douma <roeland@famdouma.nl>
Thu, 21 Nov 2019 21:25:08 +0000 (22:25 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 27 Nov 2019 12:34:41 +0000 (13:34 +0100)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Log/ExceptionSerializer.php

index 8cfdb57b225cec373f547c043bfcb0b91b16795c..fe28120b3923b5d19f4ca7c6fcd02d766454b0db 100644 (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;
        }