aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2025-01-09 19:21:35 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-01-10 08:02:37 +0000
commitc38d308aa2c4ef5bd3211897baaf7eebef12c1eb (patch)
treec135344b9edd97282ace7af2424d0ed197c9efd6 /apps/settings/lib
parent1fd8539a5801f4ba5a22b884caad30985ab6d048 (diff)
downloadnextcloud-server-backport/50113/stable30.tar.gz
nextcloud-server-backport/50113/stable30.zip
fix(setupchecks): Binary data can have problems with serializebackport/50113/stable30
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
Diffstat (limited to 'apps/settings/lib')
-rw-r--r--apps/settings/lib/SetupChecks/MemcacheConfigured.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/settings/lib/SetupChecks/MemcacheConfigured.php b/apps/settings/lib/SetupChecks/MemcacheConfigured.php
index c5acf5b5e34..2be94d7ed5f 100644
--- a/apps/settings/lib/SetupChecks/MemcacheConfigured.php
+++ b/apps/settings/lib/SetupChecks/MemcacheConfigured.php
@@ -59,7 +59,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);
@@ -76,7 +76,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);