Revision 5e2df7fc
Added by Renato Botelho about 12 years ago
usr/local/www/system_routes_edit.php | ||
---|---|---|
84 | 84 |
|
85 | 85 |
if ($_POST) { |
86 | 86 |
|
87 |
global $aliastable; |
|
88 |
|
|
87 | 89 |
unset($input_errors); |
88 | 90 |
$pconfig = $_POST; |
89 | 91 |
|
... | ... | |
126 | 128 |
} elseif (is_alias($_POST['network'])) { |
127 | 129 |
$osn = $_POST['network']; |
128 | 130 |
$fqdn_found = 0; |
129 |
foreach (filter_expand_alias_array($_POST['network'], true) as $tgt) {
|
|
130 |
if (!is_ipaddr($tgt) && is_hostname($tgt)) {
|
|
131 |
foreach (preg_split('/\s+/', $aliastable[$osn]) as $tgt) {
|
|
132 |
if (!is_ipaddr($tgt)) { |
|
131 | 133 |
if ($fqdn_found === 0) { |
132 | 134 |
$input_errors[] = sprintf(gettext("The alias (%s) has one or more FQDNs configured and cannot be used to configure a static route."), $_POST['network']); |
133 | 135 |
$fqdn_found = 1; |
Also available in: Unified diff
Use global aliastable and proper fix #2941