Revision 15a13dab
Added by Scott Ullrich over 15 years ago
usr/local/www/system_gateways_edit.php | ||
---|---|---|
93 | 93 |
if (($_POST['gateway'] && (!is_ipaddr($_POST['gateway'])) && ($pconfig['attribute'] != "system")) && (! $_POST['gateway'] == "dynamic")) { |
94 | 94 |
$input_errors[] = "A valid gateway IP address must be specified."; |
95 | 95 |
} |
96 |
if ($_POST['gateway'] && (is_ipaddr($_POST['gateway'])) && ($pconfig['attribute'] != "system")) { |
|
96 |
|
|
97 |
if ($_POST['gateway'] && (is_ipaddr($_POST['gateway'])) && ($pconfig['attribute'] != "system") && !$_REQUEST['isAjax']) { |
|
97 | 98 |
$parent_ip = get_interface_ip($_POST['interface']); |
98 | 99 |
$parent_sn = get_interface_subnet($_POST['interface']); |
99 | 100 |
if(!ip_in_subnet($_POST['gateway'], gen_subnet($parent_ip, $parent_sn) . "/" . $parent_sn)) { |
Also available in: Unified diff
Unbreak adding gateway #238