diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-06 15:41:53 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-06 15:41:53 +0000 |
commit | 98cb9208dcaee2d6fb29959db4120e644c801a5d (patch) | |
tree | 87299a8c6d0712adb8082d712231b4ec27b67d1d /etc | |
parent | 332683cb63d7111b44c14751a349538e84da3a1e (diff) | |
download | pfsense-98cb9208dcaee2d6fb29959db4120e644c801a5d.zip pfsense-98cb9208dcaee2d6fb29959db4120e644c801a5d.tar.gz |
Correct route lookup
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 2 | ||||
-rw-r--r-- | etc/inc/vpn.inc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 99c80c8..26f484e 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -213,7 +213,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); diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index 5688fae..8a588b9 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -780,7 +780,7 @@ EOD; } else { - if(preg_match("/{$rgip}/", $route_str)) { + if(stristr($route_str, "/{$rgip}/")) { mwexec("/sbin/route delete -host {$rgip}"); } } |