mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct route lookup code
This commit is contained in:
parent
004909faa6
commit
cfec5019af
@ -242,7 +242,7 @@ function system_routing_configure() {
|
||||
}
|
||||
while (!feof($fd)) {
|
||||
$oldrt = fgets($fd);
|
||||
if (preg_match("/{$oldrt}/", $route_str))
|
||||
if (($oldrt) && (stristr($route_str, $oldrt)))
|
||||
mwexec("/sbin/route delete " . escapeshellarg($oldrt));
|
||||
}
|
||||
fclose($fd);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user