summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2017-01-01 10:54:52 +0545
committerRenato Botelho <renato@netgate.com>2017-01-02 08:44:47 -0200
commitc603ead77bdf6aa573e021366372571a56ebac44 (patch)
tree392d0f2a2d676bd537bdda7caa3d149bc622eaac /src/usr/local/www/firewall_rules_edit.php
parent2025ba8c9aa0a0be9e680750372000fa2d6983a2 (diff)
downloadpfsense-c603ead77bdf6aa573e021366372571a56ebac44.zip
pfsense-c603ead77bdf6aa573e021366372571a56ebac44.tar.gz
firewall_rules_edit whitespace
(cherry picked from commit da391430080cb0e1b2054c6f676c9c678164f957)
Diffstat (limited to 'src/usr/local/www/firewall_rules_edit.php')
-rw-r--r--src/usr/local/www/firewall_rules_edit.php14
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);
OpenPOWER on IntegriCloud