special chars filter sample

This commit is contained in:
lionsoul2014 2026-02-10 15:13:48 +08:00
parent d427b4dcd8
commit 89852a70f0
1 changed files with 8 additions and 0 deletions

View File

@ -144,6 +144,14 @@ while (!feof($handle)) {
continue; continue;
} }
//@Note extract the ip address from line with special chars
// if (preg_match('/^([0-9\.]+)/', $line, $m) != 1) {
// continue;
// }
// $line = $m[1];
// print("ip: {$m[1]}\n");
try { try {
$ipBytes = Util::parseIP($line); $ipBytes = Util::parseIP($line);
} catch (Exception $e) { } catch (Exception $e) {