summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 1948e7e..ada7b47 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -79,7 +79,7 @@ if ($_POST) {
/* normalize MAC addresses - lowercase and convert Windows-ized hyphenated MACs to colon delimited */
$_POST['mac'] = strtolower(str_replace("-", ":", $_POST['mac']));
- if (($_POST['host'] && !is_hostname($_POST['host']))) {
+ if (($_POST['hostname'] && !is_hostname($_POST['hostname']))) {
$input_errors[] = "A valid host name must be specified.";
}
if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) {
OpenPOWER on IntegriCloud