mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Support non-whitespace field separators for URLtable lists (#1873)
This commit is contained in:
parent
3f965437de
commit
45d4e27a9f
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user