mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
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:
parent
c1d54e3e1e
commit
8af5e4da01
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user