mirror of
https://github.com/kvazar-network/crawler.git
synced 2025-01-09 14:48:13 +00:00
skip binary index
This commit is contained in:
parent
7cfe70ca3d
commit
0acf603eac
@ -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
|
||||
$index->add(
|
||||
$raw['time'],
|
||||
|
Loading…
Reference in New Issue
Block a user