Revision 98cb9208
Added by Seth Mos over 16 years ago
etc/inc/system.inc | ||
---|---|---|
213 | 213 |
} |
214 | 214 |
while (!feof($fd)) { |
215 | 215 |
$oldrt = fgets($fd); |
216 |
if (preg_match("/{$oldrt}/", $route_str))
|
|
216 |
if (($oldrt) && (stristr($route_str, "/{$oldrt}/")))
|
|
217 | 217 |
mwexec("/sbin/route delete " . escapeshellarg($oldrt)); |
218 | 218 |
} |
219 | 219 |
fclose($fd); |
etc/inc/vpn.inc | ||
---|---|---|
780 | 780 |
} |
781 | 781 |
else |
782 | 782 |
{ |
783 |
if(preg_match("/{$rgip}/", $route_str)) {
|
|
783 |
if(stristr($route_str, "/{$rgip}/")) {
|
|
784 | 784 |
mwexec("/sbin/route delete -host {$rgip}"); |
785 | 785 |
} |
786 | 786 |
} |
Also available in: Unified diff
Correct route lookup