diff options
author | Phil Davis <phil.davis@inf.org> | 2014-09-27 23:04:02 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-09-27 23:04:02 +0545 |
commit | 6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7 (patch) | |
tree | 9c52b11fcede26b38797fbc4d79ec93003ef09aa /usr | |
parent | 055a43d23584f92d871e77a7337d8f6d0d6babf8 (diff) | |
download | pfsense-6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7.zip pfsense-6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7.tar.gz |
Clarify bracketing
to minimize risk of a problem when adding code here in the future.
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/firewall_aliases_edit.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php index 8a87d91..965d644 100755 --- a/usr/local/www/firewall_aliases_edit.php +++ b/usr/local/www/firewall_aliases_edit.php @@ -287,7 +287,7 @@ if ($_POST) { // This loop expands out that stuff so it can easily be validated. for($x=0; $x<4999; $x++) { if($_POST["address{$x}"] <> "") { - if ($_POST["detail{$x}"] <> "") + if ($_POST["detail{$x}"] <> "") { if ((strpos($_POST["detail{$x}"], "||") === false) && (substr($_POST["detail{$x}"], 0, 1) != "|") && (substr($_POST["detail{$x}"], -1, 1) != "|")) { $detail_text = $_POST["detail{$x}"]; } else { @@ -299,7 +299,7 @@ if ($_POST) { $desc_fmt_err_found = true; } } - else { + } else { $detail_text = sprintf(gettext("Entry added %s"), date('r')); } $address_items = explode(" ", trim($_POST["address{$x}"])); |