diff options
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index f37ecc2..5762b45 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -460,6 +460,12 @@ if ($_POST) { $pconfig = $_POST; + if (($_POST['proto'] == "icmp") && count($_POST['icmptype'])) { + $pconfig['icmptype'] = implode(',', $_POST['icmptype']); + } else { + unset($pconfig['icmptype']); + } + /* input validation */ $reqdfields = explode(" ", "type proto"); if (isset($a_filter[$id]['associated-rule-id']) === false) { |