special chars filter sample
This commit is contained in:
parent
d427b4dcd8
commit
89852a70f0
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue