Skip to content

Commit d9d21f9

Browse files
authored
Merge pull request #54323 from nextcloud/backport/54238/stable30
2 parents f6504e7 + 1859f03 commit d9d21f9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/private/SystemConfig.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
* fixes cyclic DI: AllConfig needs AppConfig needs Database needs AllConfig
1616
*/
1717
class SystemConfig {
18-
/** @var array */
19-
protected $sensitiveValues = [
18+
protected array $sensitiveValues;
19+
20+
protected const DEFAULT_SENSITIVE_VALUES = [
2021
'instanceid' => true,
2122
'datadirectory' => true,
2223
'dbname' => true,
@@ -114,6 +115,7 @@ class SystemConfig {
114115
public function __construct(
115116
private Config $config,
116117
) {
118+
$this->sensitiveValues = array_merge(self::DEFAULT_SENSITIVE_VALUES, $this->config->getValue('config_extra_sensitive_values', []));
117119
}
118120

119121
/**

0 commit comments

Comments
 (0)