Skip to content

Commit 3fea444

Browse files
authored
Merge pull request #50113 from nextcloud/setupChecksMoveFromBinary
fix(SetupChecks): Don't test caches using binary data
2 parents b51513f + cd147cd commit 3fea444

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/settings/lib/SetupChecks/MemcacheConfigured.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function run(): SetupResult {
6060
}
6161

6262
if ($this->cacheFactory->isLocalCacheAvailable()) {
63-
$random = random_bytes(64);
63+
$random = bin2hex(random_bytes(64));
6464
$local = $this->cacheFactory->createLocal('setupcheck.local');
6565
try {
6666
$local->set('test', $random);
@@ -77,7 +77,7 @@ public function run(): SetupResult {
7777
}
7878

7979
if ($this->cacheFactory->isAvailable()) {
80-
$random = random_bytes(64);
80+
$random = bin2hex(random_bytes(64));
8181
$distributed = $this->cacheFactory->createDistributed('setupcheck');
8282
try {
8383
$distributed->set('test', $random);

0 commit comments

Comments
 (0)