always use default cipher for write operations, no matter how the file was encrypted before

remotes/origin/users-ajaxloadgroups
Björn Schießle 10 years ago committed by Lukas Reschke
parent cf3a8f274f
commit e7ff84df5c
  1. 6
      apps/encryption/lib/crypto/encryption.php

@ -192,10 +192,10 @@ class Encryption implements IEncryptionModule {
}
}
if (isset($header['cipher'])) {
$this->cipher = $header['cipher'];
} elseif ($this->isWriteOperation) {
if ($this->isWriteOperation) {
$this->cipher = $this->crypt->getCipher();
} elseif (isset($header['cipher'])) {
$this->cipher = $header['cipher'];
} else {
// if we read a file without a header we fall-back to the legacy cipher
// which was used in <=oC6

Loading…
Cancel
Save