From c603ead77bdf6aa573e021366372571a56ebac44 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Sun, 1 Jan 2017 10:54:52 +0545 Subject: firewall_rules_edit whitespace (cherry picked from commit da391430080cb0e1b2054c6f676c9c678164f957) --- src/usr/local/www/firewall_rules_edit.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/usr/local/www/firewall_rules_edit.php') 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); -- cgit v1.1