summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-07-12 14:38:46 +0545
committerPhil Davis <phil.davis@inf.org>2015-07-12 14:38:46 +0545
commit0c53abc2b765ccd8b965dc4228226bd0315d8f94 (patch)
tree11b28423397fd021a3f119f23f975da11f443732 /usr
parentfd29caa1c8bc3aa547c50e4842aecd7314cc8d89 (diff)
downloadpfsense-0c53abc2b765ccd8b965dc4228226bd0315d8f94.zip
pfsense-0c53abc2b765ccd8b965dc4228226bd0315d8f94.tar.gz
Firewall Aliases Edit ensure input_addresses array exists
If you click "+" to add an alias, then press Save without entering anything, you get: Warning: Invalid argument supplied for foreach() in /usr/local/www/firewall_aliases_edit.php on line 402 as well as the various messages related to $input_errors. This change ensures that $input_addresses array always exists (even if it has no real entries) so that the foreach() warning does not happen.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_aliases_edit.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr/local/www/firewall_aliases_edit.php b/usr/local/www/firewall_aliases_edit.php
index d78c500..44dcd6c 100755
--- a/usr/local/www/firewall_aliases_edit.php
+++ b/usr/local/www/firewall_aliases_edit.php
@@ -273,6 +273,7 @@ if ($_POST) {
$wrongaliases = "";
$desc_fmt_err_found = false;
$alias_address_count = 0;
+ $input_addresses = array();
// First trim and expand the input data.
// Users can paste strings like "10.1.2.0/24 10.3.0.0/16 9.10.11.0/24" into an address box.
OpenPOWER on IntegriCloud