Firewall/Nat, rule logic. better to force spacing in ruleToText() to prevent different pf command's from sticking together. for https://github.com/opnsense/core/issues/1326

This commit is contained in:
Ad Schellevis 2017-12-29 10:59:06 +01:00
parent c1d54e3e1e
commit 8af5e4da01

View File

@ -199,7 +199,9 @@ abstract class Rule
array_shift($tmp);
$args = array_merge($args, $tmp);
}
$ruleTxt .= call_user_func_array(array($this,$method), $args);
$cmdout = trim(call_user_func_array(array($this,$method), $args));
$ruleTxt .= !empty($cmdout) && !empty($ruleTxt) ? " " : "";
$ruleTxt .= $cmdout;
}
return $ruleTxt;
}