summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2008-11-07 12:28:26 +0000
committerSeth Mos <seth.mos@xs4all.nl>2008-11-07 12:28:26 +0000
commit06f76635994fe85ede6e8d4112471d6a1b00f52e (patch)
treeda80c57eb1759a33e1e5935f93ea0d1687150231 /etc
parent2731ebc8cb9a0ff53a7d8a8e90f27021fcfa03b0 (diff)
downloadpfsense-06f76635994fe85ede6e8d4112471d6a1b00f52e.zip
pfsense-06f76635994fe85ede6e8d4112471d6a1b00f52e.tar.gz
Trim and correct var
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 78e0434..b6b883a 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -212,8 +212,8 @@ function system_routing_configure() {
return 1;
}
while (!feof($fd)) {
- $oldrt = fgets($fd);
- if (($oldrt) && (stristr($route_str, "/{$oldrt}/")))
+ $oldrt = trim(fgets($fd));
+ if (($oldrt) && (stristr($route_str, "$oldrt")))
mwexec("/sbin/route delete " . escapeshellarg($oldrt));
}
fclose($fd);
OpenPOWER on IntegriCloud