From 82b95fa9feb7ecd8bafc498070f04102b439ea8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Tue, 22 Dec 2009 13:53:21 +0000 Subject: Simplify code. --- etc/inc/filter.inc | 8 +------- 1 file changed, 1 insertion(+), 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; -- cgit v1.1