Update encryption.php

This commit is contained in:
jknockaert 2015-04-22 12:28:07 +02:00 committed by Bjoern Schiessle
parent 27ea23ea6b
commit 49df8ef525
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}