mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 08:34:39 +00:00
(legacy) regression system_gateways_edit.php
This commit is contained in:
parent
3301e1a2c9
commit
f1bc827598
@ -61,8 +61,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$input_errors[] = gettext("The gateway name must not contain invalid characters.");
|
||||
}
|
||||
/* skip system gateways which have been automatically added */
|
||||
if ((!empty($pconfig['gateway']) && (!is_ipaddr($pconfig['gateway'])) &&
|
||||
($pconfig['attribute'] !== "system")) && ($pconfig['gateway'] != "dynamic")
|
||||
if (!empty($pconfig['gateway']) && !is_ipaddr($pconfig['gateway']) &&
|
||||
$pconfig['attribute'] !== "system" && $pconfig['gateway'] != "dynamic"
|
||||
) {
|
||||
$input_errors[] = gettext("A valid gateway IP address must be specified.");
|
||||
}
|
||||
@ -438,7 +438,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
exit;
|
||||
}
|
||||
|
||||
if (empty($pconfig['friendlyiface'])) {
|
||||
if (!empty($pconfig['interface'])) {
|
||||
$pconfig['friendlyiface'] = $_POST['interface'];
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user