aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2024-10-07 21:04:49 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-10-21 16:53:07 +0000
commit52382e79564a1451161e42e911cd4616942b2c82 (patch)
treeeec6a39a954e4e620e36e1b58b263d4c2e3a4e21
parent5af07d057437210444d61526ee0d19b9388f87af (diff)
downloadnextcloud-server-52382e79564a1451161e42e911cd4616942b2c82.tar.gz
nextcloud-server-52382e79564a1451161e42e911cd4616942b2c82.zip
fix(logger): Remove more parameters of other methodsbackport/48603/stable29
Signed-off-by: Joas Schilling <coding@schilljs.com>
-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 8b895bcb6be..2edb7022354 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -29,6 +29,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;
@@ -129,6 +130,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'
],
@@ -219,13 +236,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;
}