diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-01 10:54:52 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-01 10:54:52 +0545 |
commit | da391430080cb0e1b2054c6f676c9c678164f957 (patch) | |
tree | 8f15928240631e9788345da09f4bff166b7d8319 /src/usr/local/www/firewall_rules_edit.php | |
parent | 56110c7249b5dbd9ea4e0b4c4009794c69a58143 (diff) | |
download | pfsense-da391430080cb0e1b2054c6f676c9c678164f957.zip pfsense-da391430080cb0e1b2054c6f676c9c678164f957.tar.gz |
firewall_rules_edit whitespace
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 6cea900..5e5b1d7 100644 --- a/src/usr/local/www/firewall_rules_edit.php +++ b/src/usr/local/www/firewall_rules_edit.php @@ -314,13 +314,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") { @@ -594,9 +594,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; } } @@ -1936,7 +1936,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); |