diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2025-01-09 19:21:35 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2025-01-10 08:01:39 +0000 |
commit | 23e8b2d75744d7d4c4d7308a8ae92da39f4eb92b (patch) | |
tree | 788f595d80d22ffaab37e801b91f9d6db9e9e0a5 | |
parent | d256713c3ddd46bc898aa7614072b27acaaeae7b (diff) | |
download | nextcloud-server-backport/50113/stable29.tar.gz nextcloud-server-backport/50113/stable29.zip |
fix(setupchecks): Binary data can have problems with serializebackport/50113/stable29
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-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 da9fbdf684c..e976e5a544c 100644 --- a/apps/settings/lib/SetupChecks/MemcacheConfigured.php +++ b/apps/settings/lib/SetupChecks/MemcacheConfigured.php @@ -76,7 +76,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); @@ -93,7 +93,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); |