Merge pull request #54322 from nextcloud/backport/54238/stable31

pull/54256/head
Benjamin Gaussorgues 10 months ago committed by GitHub
commit 50d982ebc8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      lib/private/SystemConfig.php

@ -15,8 +15,9 @@ use OCP\IConfig;
* fixes cyclic DI: AllConfig needs AppConfig needs Database needs AllConfig
*/
class SystemConfig {
/** @var array */
protected $sensitiveValues = [
protected array $sensitiveValues;
protected const DEFAULT_SENSITIVE_VALUES = [
'instanceid' => true,
'datadirectory' => true,
'dbname' => true,
@ -114,6 +115,7 @@ class SystemConfig {
public function __construct(
private Config $config,
) {
$this->sensitiveValues = array_merge(self::DEFAULT_SENSITIVE_VALUES, $this->config->getValue('config_extra_sensitive_values', []));
}
/**

Loading…
Cancel
Save