Commit 0da01f3a authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-707 Fixed instance variable access in MapiStreamWrapper.

Released under the Affero GNU General Public License (AGPL) version 3.
parent f133d268
...@@ -97,7 +97,7 @@ class MAPIStreamWrapper { ...@@ -97,7 +97,7 @@ class MAPIStreamWrapper {
$data = ""; $data = "";
$prependLength = strlen($this->writtenData); $prependLength = strlen($this->writtenData);
// prepend data at the beginning of the stream or when we are in the middle of it // prepend data at the beginning of the stream or when we are in the middle of it
if ($prependLength > 0 && ($position == 0 || $position < $prependLength)) { if ($prependLength > 0 && ($this->position == 0 || $this->position < $prependLength)) {
$prependDataLength = ($prependLength <= $len) ? $prependLength : $len; $prependDataLength = ($prependLength <= $len) ? $prependLength : $len;
$data = substr($this->writtenData, $this->position, $prependDataLength); $data = substr($this->writtenData, $this->position, $prependDataLength);
// is there remaining data to be read from the mapi stream? // is there remaining data to be read from the mapi stream?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment