aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMisha M.-Kupriyanov <kupriyanov@strato.de>2024-12-12 15:24:17 +0100
committerAndy Scherzinger <info@andy-scherzinger.de>2025-01-25 17:19:31 +0100
commit65698ff0864ddb9ae94b3fec84c172a0cc17743d (patch)
tree9943946556e4590920f8e9d17a2fac548effcf9a
parent09a50d4da4c4d59857b5039f8e0073fa766e8a97 (diff)
downloadnextcloud-server-65698ff0864ddb9ae94b3fec84c172a0cc17743d.tar.gz
nextcloud-server-65698ff0864ddb9ae94b3fec84c172a0cc17743d.zip
fix(occ): hide sensitive data while config:app:set
in order to hide sensitive data from logs Signed-off-by: Misha M.-Kupriyanov <kupriyanov@strato.de>
-rw-r--r--core/Command/Config/App/SetConfig.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/Config/App/SetConfig.php b/core/Command/Config/App/SetConfig.php
index b1d1632ff1a..e983d32d97e 100644
--- a/core/Command/Config/App/SetConfig.php
+++ b/core/Command/Config/App/SetConfig.php
@@ -217,7 +217,7 @@ class SetConfig extends Base {
"<info>Config value '%s' for app '%s' is now set to '%s', stored as %s in %s</info>",
$configName,
$appName,
- $current['value'],
+ $current['sensitive'] ? '<sensitive>' : $current['value'],
$current['typeString'],
$current['lazy'] ? 'lazy cache' : 'fast cache'
)