diff options
author | Renato Botelho <renato@netgate.com> | 2017-01-02 08:50:39 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-01-02 08:50:39 -0200 |
commit | 8db81fbcaa33012cb4fa573312a8f72ed3660dd1 (patch) | |
tree | d7310283eae60bb51861ea91ab1408d5225a89c0 | |
parent | 43d72226845d51376adf9eda0b6e3c60fa130d26 (diff) | |
parent | 23057964d81019e8ed3adc944c77ca8a1a9c178f (diff) | |
download | pfsense-8db81fbcaa33012cb4fa573312a8f72ed3660dd1.zip pfsense-8db81fbcaa33012cb4fa573312a8f72ed3660dd1.tar.gz |
Merge pull request #3334 from phil-davis/patch-2
-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 d8f798e..9e72d9c 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -423,6 +423,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) { |