diff options
author | Renato Botelho <garga@FreeBSD.org> | 2013-04-14 15:51:44 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2013-04-14 15:51:44 -0300 |
commit | 5b431a20dead1128687453407a3b0c603154e773 (patch) | |
tree | e36289775bfdf83c775c0e5bfc6dcb87bba45806 /usr/local/www | |
parent | 5da58a38c76c7c35e63d0af46b714f23fb726301 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/system_routes_edit.php | 2 |
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']); |