Skip to content

Commit

Permalink
trimming on both sides of the message fixes #16
Browse files Browse the repository at this point in the history
  • Loading branch information
beatchristen committed Oct 22, 2012
1 parent 7dde75c commit 692b5df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/FuseSource/Stomp/Stomp.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ public function readFrame ()
$data .= $read;
if (strpos($data, "\x00") !== false) {
$end = true;
$data = rtrim($data, "\n");
$data = trim($data, "\n");
}
$len = strlen($data);
} while ($len < 2 || $end == false);
Expand Down

0 comments on commit 692b5df

Please sign in to comment.