Trim spaces out to avoid problems from explode.

This commit is contained in:
Ermal 2011-03-29 09:11:30 +00:00
parent ad6df0b3ca
commit b0eaa10cda

View File

@ -1070,7 +1070,7 @@ function filter_generate_reflection($rule, $nordr, $rdr_ifs, $srcaddr, $dstaddr_
$socktype = "stream";
$dash_u = "";
}
$target = explode(" ", $target);
$target = explode(" ", trim($target));
foreach ($target as $targip) {
if (empty($targip))
continue;