mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 13:53:35 +02:00
Trim NUL bytes from rcon output, fixes #51
This commit is contained in:
@@ -162,9 +162,7 @@
|
||||
while( true );
|
||||
}
|
||||
|
||||
// TODO: It should use GetString, but there are no null bytes at the end, why?
|
||||
// $Buffer = $this->Buffer->GetString( );
|
||||
return $Buffer;
|
||||
return rtrim( $Buffer, "\0" );
|
||||
}
|
||||
|
||||
public function Authorize( $Password )
|
||||
|
||||
Reference in New Issue
Block a user