aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2024-10-08 13:49:53 +0200
committerGitHub <noreply@github.com>2024-10-08 13:49:53 +0200
commite11520e6af983fc234bda5f0f8290ac3424a66a1 (patch)
treede4eba0f400be91702ec81ef7f88e164ea445919 /lib
parent771eb1f1992f61c61533b3060a15a532894019a2 (diff)
parenta90921e23987559c4f51c59da8d33c90c64060eb (diff)
downloadnextcloud-server-e11520e6af983fc234bda5f0f8290ac3424a66a1.tar.gz
nextcloud-server-e11520e6af983fc234bda5f0f8290ac3424a66a1.zip
Merge pull request #48603 from nextcloud/bugfix/noid/censor-more-values
fix(logger): Remove more parameters of other methods
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Log/ExceptionSerializer.php21
1 files changed, 19 insertions, 2 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php
index 03beed7cce1..25e52e66f39 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -6,6 +6,7 @@
namespace OC\Log;
use OC\Core\Controller\SetupController;
+use OC\Http\Client\Client;
use OC\Security\IdentityProof\Key;
use OC\Setup;
use OC\SystemConfig;
@@ -106,6 +107,22 @@ class ExceptionSerializer {
Key::class => [
'__construct'
],
+ Client::class => [
+ 'request',
+ 'delete',
+ 'deleteAsync',
+ 'get',
+ 'getAsync',
+ 'head',
+ 'headAsync',
+ 'options',
+ 'optionsAsync',
+ 'patch',
+ 'post',
+ 'postAsync',
+ 'put',
+ 'putAsync',
+ ],
\Redis::class => [
'auth'
],
@@ -196,13 +213,13 @@ class ExceptionSerializer {
private function removeValuesFromArgs($args, $values): array {
$workArgs = [];
- foreach ($args as $arg) {
+ foreach ($args as $key => $arg) {
if (in_array($arg, $values, true)) {
$arg = self::SENSITIVE_VALUE_PLACEHOLDER;
} elseif (is_array($arg)) {
$arg = $this->removeValuesFromArgs($arg, $values);
}
- $workArgs[] = $arg;
+ $workArgs[$key] = $arg;
}
return $workArgs;
}