summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-01-02 08:50:39 -0200
committerRenato Botelho <renato@netgate.com>2017-01-02 08:50:39 -0200
commit8db81fbcaa33012cb4fa573312a8f72ed3660dd1 (patch)
treed7310283eae60bb51861ea91ab1408d5225a89c0
parent43d72226845d51376adf9eda0b6e3c60fa130d26 (diff)
parent23057964d81019e8ed3adc944c77ca8a1a9c178f (diff)
downloadpfsense-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.php6
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) {
OpenPOWER on IntegriCloud