From 23c5c71f4a46a526d4f973efbb3205e3e34ec17c Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Tue, 30 Dec 2025 20:39:22 +0100 Subject: [PATCH] Misc/Fixup * fixed crash when bit blob contains trailing whitespace --- includes/utilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/utilities.php b/includes/utilities.php index 9022610f..e6351dda 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -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))