skip binary index

This commit is contained in:
ghost 2024-02-13 12:41:05 +02:00
parent 7cfe70ca3d
commit 0acf603eac

View File

@ -341,6 +341,16 @@ for ($block = $state; $block <= $blocks; $block++)
); );
} }
// Skip binary content
if (false === mb_detect_encoding((string) $namespace, null, true)
||
false === mb_detect_encoding((string) $key, null, true)
||
false === mb_detect_encoding((string) $value, null, true))
{
continue;
}
// Add index record // Add index record
$index->add( $index->add(
$raw['time'], $raw['time'],