mirror of
https://github.com/kvazar-network/crawler.git
synced 2025-01-08 22:27:56 +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
|
// Add index record
|
||||||
$index->add(
|
$index->add(
|
||||||
$raw['time'],
|
$raw['time'],
|
||||||
|
Loading…
Reference in New Issue
Block a user