Revision 07ab4926
Added by Scott Ullrich over 15 years ago
usr/local/www/services_dhcp_edit.php | ||
---|---|---|
109 | 109 |
/* normalize MAC addresses - lowercase and convert Windows-ized hyphenated MACs to colon delimited */ |
110 | 110 |
$_POST['mac'] = strtolower(str_replace("-", ":", $_POST['mac'])); |
111 | 111 |
|
112 |
if (($_POST['host'] && !is_hostname($_POST['host']))) {
|
|
112 |
if (($_POST['hostname'] && !is_hostname($_POST['hostname']))) {
|
|
113 | 113 |
$input_errors[] = "A valid host name must be specified."; |
114 | 114 |
} |
115 | 115 |
if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) { |
Also available in: Unified diff
Update fieldname, it should be hostname and not host Ticket #159