Skip to content

Commit

Permalink
[mms] Fixes for stream handling in the Nstring object.
Browse files Browse the repository at this point in the history
  • Loading branch information
slusarz committed Mar 5, 2014
1 parent d1012ef commit 5d2025e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,17 @@ public function escape()
: parent::escape();
}

public function escapeStream()
{
if (is_null($this->_data)) {
$stream = new Horde_Stream_Temp();
$stream->add('NIL', true);
return $stream->stream;
}

return parent::escapeStream();
}

/**
*/
public function quoted()
Expand All @@ -76,7 +87,7 @@ public function getStream()
{
return is_null($this->_data)
? new Horde_Stream_Temp()
: parent::length();
: parent::getStream();
}

}
2 changes: 2 additions & 0 deletions framework/Imap_Client/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fixes for stream handling in the Nstring object.
* [mms] Split data format object test into individual files.
</notes>
<contents>
Expand Down Expand Up @@ -2280,6 +2281,7 @@
<date>2014-03-05</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fixes for stream handling in the Nstring object.
* [mms] Split data format object test into individual files.
</notes>
</release>
Expand Down

0 comments on commit 5d2025e

Please sign in to comment.