Misc/Fixup
* fixed crash when bit blob contains trailing whitespace
This commit is contained in:
parent
6c1b4e4e1a
commit
23c5c71f4a
1 changed files with 1 additions and 1 deletions
|
|
@ -1054,7 +1054,7 @@ abstract class Util
|
|||
public static function indexBitBlob(string $bitBlob, int $blobSize = 32) : array
|
||||
{
|
||||
$indizes = [];
|
||||
$blocks = explode(' ', $bitBlob);
|
||||
$blocks = explode(' ', trim($bitBlob));
|
||||
for ($i = 0; $i < count($blocks); $i++)
|
||||
for ($j = 0; $j < $blobSize; $j++)
|
||||
if ($blocks[$i] & (1 << $j))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue