summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2024-04-11 15:13:32 +0200
committerGitHub <noreply@github.com>2024-04-11 15:13:32 +0200
commit40d5495d05c1519f8aaf9110e8802e40691a806d (patch)
treeef88b0d224fe69f8f90b937ddfb4b1f6f707a4e5 /lib
parent261764568dac6fe51f4e9d8cddcd5ab10c64aded (diff)
parentabc4ced1e77cf751a0414b03300c37715ee8f33c (diff)
downloadnextcloud-server-40d5495d05c1519f8aaf9110e8802e40691a806d.tar.gz
nextcloud-server-40d5495d05c1519f8aaf9110e8802e40691a806d.zip
Merge pull request #44645 from nextcloud/backport/44642/stable29
[stable29] fix(appconfig): compare with original value
Diffstat (limited to 'lib')
-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;
}