summaryrefslogtreecommitdiffstats
path: root/lib/private/AppConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/AppConfig.php')
-rw-r--r--lib/private/AppConfig.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php
index 5d753a6ee9c..ccd07b1c20a 100644
--- a/lib/private/AppConfig.php
+++ b/lib/private/AppConfig.php
@@ -1032,14 +1032,20 @@ class AppConfig implements IAppConfig {
throw new AppConfigUnknownKeyException('unknown config key');
}
+ $value = $cache[$app][$key];
+ $sensitive = $this->isSensitive($app, $key, null);
+ if ($sensitive && str_starts_with($value, self::ENCRYPTION_PREFIX)) {
+ $value = $this->crypto->decrypt(substr($value, self::ENCRYPTION_PREFIX_LENGTH));
+ }
+
return [
'app' => $app,
'key' => $key,
- 'value' => $cache[$app][$key],
+ 'value' => $value,
'type' => $type,
'lazy' => $lazy,
'typeString' => $typeString,
- 'sensitive' => $this->isSensitive($app, $key, null)
+ 'sensitive' => $sensitive
];
}