diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2024-04-03 16:56:19 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2024-04-03 16:56:19 -0100 |
commit | a643a7122257846ee502771e75dbe01c6cf694d9 (patch) | |
tree | 0afdef65a50580d88dfaaad55ac4b3ab88eca29a /lib | |
parent | 7bd9100a85b858ad74df0ee51959ccbd02700ec0 (diff) | |
download | nextcloud-server-a643a7122257846ee502771e75dbe01c6cf694d9.tar.gz nextcloud-server-a643a7122257846ee502771e75dbe01c6cf694d9.zip |
fix(appconfig): compare with original value
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/AppConfig.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 518ba6ebf7a..5d753a6ee9c 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -751,6 +751,7 @@ class AppConfig implements IAppConfig { $sensitive = $this->isTyped(self::VALUE_SENSITIVE, $type); $inserted = $refreshCache = false; + $origValue = $value; if ($sensitive || ($this->hasKey($app, $key, $lazy) && $this->isSensitive($app, $key, $lazy))) { $value = self::ENCRYPTION_PREFIX . $this->crypto->encrypt($value); } @@ -760,7 +761,7 @@ class AppConfig implements IAppConfig { * no update if key is already known with set lazy status and value is * not different, unless sensitivity is switched from false to true. */ - if ($value === $this->getTypedValue($app, $key, $value, $lazy, $type) + if ($origValue === $this->getTypedValue($app, $key, $value, $lazy, $type) && (!$sensitive || $this->isSensitive($app, $key, $lazy))) { return false; } |