From cfec5019af28712e5b12c4e30a2be986b4ff7b66 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 6 Nov 2008 15:38:21 +0000 Subject: [PATCH] Correct route lookup code --- etc/inc/system.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/system.inc b/etc/inc/system.inc index bc7436d6ff..95e7005f39 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -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);