mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
fix(setupchecks): Binary data can have problems with serialize
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
a850a0bfc9
commit
cd147cd1a3
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue