summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_gateways_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php
index c3aabb6..160ed44e 100755
--- a/usr/local/www/system_gateways_edit.php
+++ b/usr/local/www/system_gateways_edit.php
@@ -94,7 +94,7 @@ if ($_POST) {
$input_errors[] = "A valid gateway IP address must be specified.";
}
if ($_POST['gateway'] && (is_ipaddr($_POST['gateway'])) && ($pconfig['attribute'] != "system")) {
- if(! ip_in_subnet($_POST['gateway']), get_interface_subnet($interface)) {
+ if(! ip_in_subnet($_POST['gateway'], get_interface_subnet($interface)) {
$input_errors[] = "The Address {$_POST['gateway']} does not lie in the interface subnet";
}
}
OpenPOWER on IntegriCloud