aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2024-04-03 16:56:19 -0100
committerMaxence Lange <maxence@artificial-owl.com>2024-04-04 09:15:35 -0100
commitabc4ced1e77cf751a0414b03300c37715ee8f33c (patch)
treec293c748a6a7625080e75564140eb49fda830a90 /lib/private
parentfdadaf213203d2612c0c1d6998a00a28af67ff9d (diff)
downloadnextcloud-server-abc4ced1e77cf751a0414b03300c37715ee8f33c.tar.gz
nextcloud-server-abc4ced1e77cf751a0414b03300c37715ee8f33c.zip
fix(appconfig): compare with original value
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/AppConfig.php3
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;
}