Support non-whitespace field separators for URLtable lists (#1873)

This commit is contained in:
shonjir 2017-10-13 09:18:34 -07:00 committed by Franco Fichtner
parent 3f965437de
commit 45d4e27a9f

View File

@ -175,7 +175,7 @@ function process_alias_urltable($name, $alias_type, $url, $freq, $forceupdate =
continue;
}
// cleanse line item
$line = preg_split('/\s+/', $line)[0];
$line = preg_split('/[\s,;|#]+/', $line)[0];
if ($alias_type == "urltable_ports") {
// todo: add proper validation for ports here
fwrite($output_file_handle, "{$line}\n");