mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Remove hostname blacklisting
This commit is contained in:
parent
1dd1684885
commit
dc48690ed5
1 changed files with 1 additions and 11 deletions
|
@ -10,16 +10,6 @@ namespace Friendica\Core\Config;
|
||||||
*/
|
*/
|
||||||
class Configuration
|
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
|
* @var Cache\IConfigCache
|
||||||
*/
|
*/
|
||||||
|
@ -127,7 +117,7 @@ class Configuration
|
||||||
$cached = $this->configCache->set($cat, $key, $value);
|
$cached = $this->configCache->set($cat, $key, $value);
|
||||||
|
|
||||||
// If there is no connected adapter, we're finished
|
// If there is no connected adapter, we're finished
|
||||||
if (!$this->configAdapter->isConnected() || !empty($this->configSaveBlacklist[$cat][$key])) {
|
if (!$this->configAdapter->isConnected()) {
|
||||||
return $cached;
|
return $cached;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue