diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-01-09 19:21:35 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2025-01-09 23:42:07 +0100 |
commit | cd147cd1a3ab2f753b96b46a4118472561b6e53d (patch) | |
tree | 9d8c91cfbe43371c3bc8c02922266c69a1583024 /apps/settings | |
parent | a850a0bfc9ef3922cbd9f7e340c9b60be37f9e57 (diff) | |
download | nextcloud-server-setupChecksMoveFromBinary.tar.gz nextcloud-server-setupChecksMoveFromBinary.zip |
fix(setupchecks): Binary data can have problems with serializesetupChecksMoveFromBinary
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/lib/SetupChecks/MemcacheConfigured.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/MemcacheConfigured.php b/apps/settings/lib/SetupChecks/MemcacheConfigured.php index 65151591fbf..e3601d428bb 100644 --- a/apps/settings/lib/SetupChecks/MemcacheConfigured.php +++ b/apps/settings/lib/SetupChecks/MemcacheConfigured.php @@ -60,7 +60,7 @@ class MemcacheConfigured implements ISetupCheck { } if ($this->cacheFactory->isLocalCacheAvailable()) { - $random = random_bytes(64); + $random = bin2hex(random_bytes(64)); $local = $this->cacheFactory->createLocal('setupcheck.local'); try { $local->set('test', $random); @@ -77,7 +77,7 @@ class MemcacheConfigured implements ISetupCheck { } if ($this->cacheFactory->isAvailable()) { - $random = random_bytes(64); + $random = bin2hex(random_bytes(64)); $distributed = $this->cacheFactory->createDistributed('setupcheck'); try { $distributed->set('test', $random); |