Skip to content

Commit

Permalink
remove ; from the raw line
Browse files Browse the repository at this point in the history
  • Loading branch information
sayzard committed Oct 22, 2019
1 parent 4e66617 commit cdc850c
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 cdc850c

Please sign in to comment.