diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-25 23:42:53 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-25 23:42:53 -0600 |
commit | edee528c53d3927aaaa8c3ab52594338afc4c08b (patch) | |
tree | ccd12c39a8e9f195430407934a5f667742ef1065 /usr/local/www | |
parent | 31afa0845012952d731a191e55a126a12054e25e (diff) | |
download | pfsense-edee528c53d3927aaaa8c3ab52594338afc4c08b.zip pfsense-edee528c53d3927aaaa8c3ab52594338afc4c08b.tar.gz |
Send the gateway name to this function. Fixes #4047
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | 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 3abe8c2..84e0f92 100644 --- a/usr/local/www/system_routes_edit.php +++ b/usr/local/www/system_routes_edit.php @@ -97,7 +97,7 @@ if ($_POST) { if (($_POST['gateway']) && is_ipaddr($_POST['network'])) { if (!isset($a_gateways[$_POST['gateway']])) $input_errors[] = gettext("A valid gateway must be specified."); - if(!validate_address_family($_POST['network'], lookup_gateway_ip_by_name($_POST['gateway']))) + if(!validate_address_family($_POST['network'], $_POST['gateway'])) $input_errors[] = gettext("The gateway '{$a_gateways[$_POST['gateway']]['gateway']}' is a different Address Family as network '{$_POST['network']}'."); } |