Skip to content
Snippets Groups Projects
Commit 49df8ef5 authored by jknockaert's avatar jknockaert Committed by Björn Schießle
Browse files

Update encryption.php

parent 27ea23ea
Branches
No related tags found
No related merge requests found
......@@ -237,6 +237,7 @@ class Encryption extends Wrapper {
$accessList = $this->file->getAccessList($sharePath);
$this->newHeader = $this->encryptionModule->begin($this->fullPath, $this->uid, $this->header, $accessList);
if (!($path==='')){
if (
$mode === 'w'
|| $mode === 'w+'
......@@ -250,7 +251,7 @@ class Encryption extends Wrapper {
} else {
parent::stream_read($this->util->getHeaderSize());
}
}
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment