aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorGit'Fellow <12234510+solracsf@users.noreply.github.com>2025-01-09 19:21:35 +0100
committerJoas Schilling <coding@schilljs.com>2025-01-09 23:42:07 +0100
commitcd147cd1a3ab2f753b96b46a4118472561b6e53d (patch)
tree9d8c91cfbe43371c3bc8c02922266c69a1583024 /apps/settings
parenta850a0bfc9ef3922cbd9f7e340c9b60be37f9e57 (diff)
downloadnextcloud-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.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 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);