summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_routes_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-04-14 15:51:44 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-04-14 15:51:44 -0300
commit5b431a20dead1128687453407a3b0c603154e773 (patch)
treee36289775bfdf83c775c0e5bfc6dcb87bba45806 /usr/local/www/system_routes_edit.php
parent5da58a38c76c7c35e63d0af46b714f23fb726301 (diff)
downloadpfsense-5b431a20dead1128687453407a3b0c603154e773.zip
pfsense-5b431a20dead1128687453407a3b0c603154e773.tar.gz
Add a new parameter to return all aliases, including hosts. It fixes #2941
Diffstat (limited to 'usr/local/www/system_routes_edit.php')
-rwxr-xr-xusr/local/www/system_routes_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_routes_edit.php b/usr/local/www/system_routes_edit.php
index 37c2c2c..de8cab5 100755
--- a/usr/local/www/system_routes_edit.php
+++ b/usr/local/www/system_routes_edit.php
@@ -126,7 +126,7 @@ if ($_POST) {
} elseif (is_alias($_POST['network'])) {
$osn = $_POST['network'];
$fqdn_found = 0;
- foreach (filter_expand_alias_array($_POST['network']) as $tgt) {
+ foreach (filter_expand_alias_array($_POST['network'], true) as $tgt) {
if (!is_ipaddr($tgt) && is_hostname($tgt)) {
if ($fqdn_found === 0) {
$input_errors[] = sprintf(gettext("The alias (%s) has one or more FQDNs configured and cannot be used to configure a static route."), $_POST['network']);
OpenPOWER on IntegriCloud