summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-09-27 23:04:02 +0545
committerPhil Davis <phil.davis@inf.org>2014-09-27 23:04:02 +0545
commit6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7 (patch)
tree9c52b11fcede26b38797fbc4d79ec93003ef09aa
parent055a43d23584f92d871e77a7337d8f6d0d6babf8 (diff)
downloadpfsense-6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7.zip
pfsense-6b18c66b5128c0b1a6cb20edfee955a5d8caf1f7.tar.gz
Clarify bracketing
to minimize risk of a problem when adding code here in the future.
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php4
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}"]));
OpenPOWER on IntegriCloud