Skip to content

Commit

Permalink
Fix rewinding stream object.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Sep 8, 2014
1 parent 552be5e commit 686f9fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/ActiveSync/lib/Horde/ActiveSync/Rfc822.php
Expand Up @@ -75,7 +75,7 @@ public function __construct($rfc822, $auto_add_headers = true)
{
if (is_resource($rfc822)) {
$stream = new Horde_Stream_Existing(array('stream' => $rfc822));
rewind($stream);
$stream->rewind();
} else {
$stream = new Horde_Stream_Temp(array('max_memory' => self::$memoryLimit));
$stream->add($rfc822, true);
Expand Down

0 comments on commit 686f9fd

Please sign in to comment.