1
0
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:
xPaw
2015-07-05 18:35:23 +03:00
parent 0e55dddae8
commit e95be546f1
+1 -3
View File
@@ -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 )