Skip to content
Snippets Groups Projects
Commit c9d6ed3d authored by Thomas Müller's avatar Thomas Müller
Browse files

in case the file exists we require the explicit module as specified in the...

in case the file exists we require the explicit module as specified in the file header - otherwise we need to fail hard to prevent data loss on client side
parent de4ec21c
No related branches found
No related tags found
No related merge requests found
......@@ -219,6 +219,12 @@ class Encryption extends Wrapper {
$size = $unencryptedSize = 0;
if ($this->file_exists($path)) {
// in case the file exists we require the explicit module as
// specified in the file header - otherwise we need to fail hard to
// prevent data loss on client side
if (!empty($encryptionModuleId)) {
$encryptionModule = $this->encryptionManager->getEncryptionModule($encryptionModuleId);
}
$size = $this->storage->filesize($path);
$unencryptedSize = $this->filesize($path);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment