summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:38:21 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-06 15:38:21 +0000
commitcfec5019af28712e5b12c4e30a2be986b4ff7b66 (patch)
treee4ae3e8ed89e0e49df4d729432de15c063e331ea /etc
parent004909faa63576318655ec1b4116fd95677e74b1 (diff)
downloadpfsense-cfec5019af28712e5b12c4e30a2be986b4ff7b66.zip
pfsense-cfec5019af28712e5b12c4e30a2be986b4ff7b66.tar.gz
Correct route lookup code
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc2
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);
OpenPOWER on IntegriCloud