summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErik Fonnesbeck <efonnes@gmail.com>2010-05-06 02:47:06 -0600
committerErik Fonnesbeck <efonnes@gmail.com>2010-05-06 02:47:06 -0600
commit0167a9bff5bafa7428ca2f4fdd85f5eabe25144c (patch)
tree4ed489f5c0c07c1d20e2896b38993fe877e10324 /etc
parent257c5205bbfa87293ae91a676786167ffbeaf723 (diff)
downloadpfsense-0167a9bff5bafa7428ca2f4fdd85f5eabe25144c.zip
pfsense-0167a9bff5bafa7428ca2f4fdd85f5eabe25144c.tar.gz
Fix the regular expression used in filter_generate_address for OPT subnet so that it only matches the case intended. Ticket #571
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 5fe7d56..829082c 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1370,7 +1370,7 @@ function filter_generate_address(& $rule, $target = "source", $isnat = false) {
if(strstr($rule[$target]['network'], "opt")) {
$optmatch = "";
$matches = "";
- if(preg_match("/opt([0-9]*)/", $rule[$target]['network'], $optmatch)) {
+ if(preg_match("/opt([0-9]*)$/", $rule[$target]['network'], $optmatch)) {
$opt_ip = $FilterIflist["opt{$optmatch[1]}"]['ip'];
if(!is_ipaddr($opt_ip))
return "";
OpenPOWER on IntegriCloud