diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-06 15:38:21 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-06 15:38:21 +0000 |
commit | cfec5019af28712e5b12c4e30a2be986b4ff7b66 (patch) | |
tree | e4ae3e8ed89e0e49df4d729432de15c063e331ea | |
parent | 004909faa63576318655ec1b4116fd95677e74b1 (diff) | |
download | pfsense-cfec5019af28712e5b12c4e30a2be986b4ff7b66.zip pfsense-cfec5019af28712e5b12c4e30a2be986b4ff7b66.tar.gz |
Correct route lookup code
-rw-r--r-- | etc/inc/system.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index bc7436d..95e7005 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); |