Revision 407f6220
Added by Chris Buechler almost 16 years ago
usr/local/www/services_dhcp_edit.php | ||
---|---|---|
111 | 111 |
|
112 | 112 |
if ($_POST['hostname']) { |
113 | 113 |
if (!is_hostname($_POST['hostname'])) { |
114 |
$input_errors[] = "A valid host name must be specified.";
|
|
114 |
$input_errors[] = "The hostname can only contain the characters A-Z, 0-9 and '-'.";
|
|
115 | 115 |
} else { |
116 | 116 |
if (strpos($_POST['hostname'],'.')) { |
117 | 117 |
$input_errors[] = "A valid hostname is specified, but the domain name part should be omitted"; |
Also available in: Unified diff
clarify what is valid for input errors on hostname