diff options
author | Phil Davis <phil.davis@inf.org> | 2017-01-22 15:50:18 +0545 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-22 15:50:18 +0545 |
commit | f99bbf5e01f71ba21ff6ed0b95d47b1b7d163154 (patch) | |
tree | 7233303a1c807a00e2afd9e3225fb7b88015956a | |
parent | b2bb49709d6d1cb845f2c7caf40bebe375ecb2d7 (diff) | |
download | pfsense-f99bbf5e01f71ba21ff6ed0b95d47b1b7d163154.zip pfsense-f99bbf5e01f71ba21ff6ed0b95d47b1b7d163154.tar.gz |
Display input error when no aliases to import
Currently if you put nothing in the "Aliases to import" box and press Save then the page just reloads - nothing saves and there is no message about the problem. It should tell you to that "Aliases to import" is required.
-rw-r--r-- | src/usr/local/www/firewall_aliases_import.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/firewall_aliases_import.php b/src/usr/local/www/firewall_aliases_import.php index 0921a21..d934d7d 100644 --- a/src/usr/local/www/firewall_aliases_import.php +++ b/src/usr/local/www/firewall_aliases_import.php @@ -60,9 +60,9 @@ if (!is_array($config['aliases']['alias'])) { } $a_aliases = &$config['aliases']['alias']; -if ($_POST['aliasimport'] != "") { +if ($_POST) { $reqdfields = explode(" ", "name aliasimport"); - $reqdfieldsn = array(gettext("Name"), gettext("Aliases")); + $reqdfieldsn = array(gettext("Name"), gettext("Aliases to import")); do_input_validation($_POST, $reqdfields, $reqdfieldsn, $input_errors); |