summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2009-12-22 13:53:21 +0000
committerErmal Luçi <eri@pfsense.org>2009-12-22 13:53:21 +0000
commit82b95fa9feb7ecd8bafc498070f04102b439ea8d (patch)
treec4fcff051fcbb8b37dc129017aebbf2ab6081bdf
parenta584475a8facd93b54ba1419d6cf5a736a500bf6 (diff)
downloadpfsense-82b95fa9feb7ecd8bafc498070f04102b439ea8d.zip
pfsense-82b95fa9feb7ecd8bafc498070f04102b439ea8d.tar.gz
Simplify code.
-rw-r--r--etc/inc/filter.inc8
1 files changed, 1 insertions, 7 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 156575b..2629eb7 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -750,13 +750,7 @@ function filter_generate_reflection($rule, $target, $extport, &$starting_localho
log_error("Reflection processing: {$loc_pt} is not a vaild port alias.");
continue;
}
- if(stristr($loc_pt_translated, " ")) {
- /* XXX: we should deal with multiple ports */
- $loc_pt_translated_split = split(" ", $loc_pt_translated);
- foreach($loc_pt_translated_split as $lpts)
- $toadd_array[] = $lpts;
- } else
- $toadd_array[] = $loc_pt_translated;
+ $toadd_array = split(" ", $loc_pt_translated);
} else {
$loc_pt_translated = $loc_pt;
$toadd_array[] = $loc_pt_translated;
OpenPOWER on IntegriCloud