diff options
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r-- | src/usr/local/www/firewall_rules_edit.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/local/www/firewall_rules_edit.php b/src/usr/local/www/firewall_rules_edit.php index 28adcd9..c95402b 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -346,13 +346,13 @@ $dnqlist =& get_unique_dnqueue_list(); $a_gatewaygroups = return_gateway_groups_array(); if ($_POST) { - + unset($input_errors); - + if (!array_key_exists($_POST['ipprotocol'], $icmplookup)) { $input_errors[] = gettext("The IP protocol is not recognized."); } - + if (isset($a_filter[$id]['associated-rule-id'])) { $_POST['proto'] = $pconfig['proto']; if ($pconfig['proto'] == "icmp") { @@ -631,9 +631,9 @@ if ($_POST) { // Only need to check valid if just one selected != "any", or >1 selected $p = $_POST['ipprotocol']; foreach ($t as $type) { - if ( ($p == 'inet' && !array_key_exists($type, $icmptypes4)) || - ($p == 'inet6' && !array_key_exists($type, $icmptypes6)) || - ($p == 'inet46' && !array_key_exists($type, $icmptypes46))) { + if (($p == 'inet' && !array_key_exists($type, $icmptypes4)) || + ($p == 'inet6' && !array_key_exists($type, $icmptypes6)) || + ($p == 'inet46' && !array_key_exists($type, $icmptypes46))) { $bad_types[] = $type; } } @@ -1973,7 +1973,7 @@ events.push(function() { if (jQuery.inArray('any', current_sel) != -1) { // "any" negates all selections $(listid).find('option').not('[value="any"]').removeAttr('selected'); - } + } if ($(listid + ' option:selected').length == 0) { // no selection = select "any" $(listid + ' option[value="any"]').prop('selected', true); |