Browse Source

Remove hostname blacklisting

pull/6989/head
Philipp Holzer 3 years ago
parent
commit
dc48690ed5
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
  1. 12
      src/Core/Config/Configuration.php

12
src/Core/Config/Configuration.php

@ -10,16 +10,6 @@ namespace Friendica\Core\Config;
*/
class Configuration
{
/**
* The blacklist of configuration settings, which should not get saved to the backend
* @var array
*/
private $configSaveBlacklist = [
'config' => [
'hostname' => true,
]
];
/**
* @var Cache\IConfigCache
*/
@ -127,7 +117,7 @@ class Configuration
$cached = $this->configCache->set($cat, $key, $value);
// If there is no connected adapter, we're finished
if (!$this->configAdapter->isConnected() || !empty($this->configSaveBlacklist[$cat][$key])) {
if (!$this->configAdapter->isConnected()) {
return $cached;
}

Loading…
Cancel
Save