Update encryption.php
This commit is contained in:
parent
27ea23ea6b
commit
49df8ef525
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue