Skip to content

Commit

Permalink
Merge pull request Ysurac#445 from sayzard/raw30002
Browse files Browse the repository at this point in the history
remove ; from the raw line
  • Loading branch information
Ysurac authored Oct 22, 2019
2 parents 4e66617 + cdc850c commit 237d29c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion require/class.SBS.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ public function parse($buffer) {
// Not yet finished, no CRC checks
$data = array();
$typehex = substr($buffer,0,1);
if ($typehex == '*' || $typehex == ':') $hex = substr($buffer,1);
if ($typehex == '*' || $typehex == ':') {
$hex = substr($buffer,1);
if(substr($hex,-1,1)==";") {
$hex=substr($hex,0,-1);
}
}
//elseif ($typehex == '@' || $typehex == '%') $hex = substr($buffer,13,-13);
elseif ($typehex == '@' || $typehex == '%') $hex = substr($buffer,13,-1);
else $hex = substr($buffer,1,-1);
Expand Down

0 comments on commit 237d29c

Please sign in to comment.