mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #24241 from nextcloud/enh/harden_EncryptionLegacyCipher_repair
Harden EncryptionLegacyCipher a bit
This commit is contained in:
commit
7fd7601016
2 changed files with 8 additions and 0 deletions
|
|
@ -54,6 +54,10 @@ class EncryptionLegacyCipher implements IRepairStep {
|
|||
}
|
||||
|
||||
public function run(IOutput $output): void {
|
||||
if (!$this->shouldRun()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->manager->isEnabled()) {
|
||||
if ($this->config->getSystemValue('encryption.legacy_format_support', '') === '') {
|
||||
$this->config->setSystemValue('encryption.legacy_format_support', true);
|
||||
|
|
|
|||
|
|
@ -54,6 +54,10 @@ class EncryptionMigration implements IRepairStep {
|
|||
}
|
||||
|
||||
public function run(IOutput $output): void {
|
||||
if (!$this->shouldRun()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ($this->manager->isEnabled()) {
|
||||
if ($this->config->getSystemValue('encryption.key_storage_migrated', '') === '') {
|
||||
$this->config->setSystemValue('encryption.key_storage_migrated', false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue