Harden EncryptionLegacyCipher a bit
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
322b0ab2b3
commit
06286f8c0e
|
@ -54,6 +54,10 @@ class EncryptionLegacyCipher implements IRepairStep {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function run(IOutput $output): void {
|
public function run(IOutput $output): void {
|
||||||
|
if (!$this->shouldRun()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->manager->isEnabled()) {
|
if ($this->manager->isEnabled()) {
|
||||||
if ($this->config->getSystemValue('encryption.legacy_format_support', '') === '') {
|
if ($this->config->getSystemValue('encryption.legacy_format_support', '') === '') {
|
||||||
$this->config->setSystemValue('encryption.legacy_format_support', true);
|
$this->config->setSystemValue('encryption.legacy_format_support', true);
|
||||||
|
|
|
@ -54,6 +54,10 @@ class EncryptionMigration implements IRepairStep {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function run(IOutput $output): void {
|
public function run(IOutput $output): void {
|
||||||
|
if (!$this->shouldRun()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->manager->isEnabled()) {
|
if ($this->manager->isEnabled()) {
|
||||||
if ($this->config->getSystemValue('encryption.key_storage_migrated', '') === '') {
|
if ($this->config->getSystemValue('encryption.key_storage_migrated', '') === '') {
|
||||||
$this->config->setSystemValue('encryption.key_storage_migrated', false);
|
$this->config->setSystemValue('encryption.key_storage_migrated', false);
|
||||||
|
|
Loading…
Reference in New Issue