Revision 4c8a8653
Added by Scott Ullrich almost 15 years ago
usr/local/www/services_dhcp_edit.php | ||
---|---|---|
113 | 113 |
if ($_POST['hostname']) { |
114 | 114 |
preg_match("/^[0-9]/", $_POST['hostname'], $matches); |
115 | 115 |
if($matches) |
116 |
$input_errors[] = gettext("The hostname cannot start with a numeric character according to RFC1123");
|
|
116 |
$input_errors[] = gettext("The hostname cannot start with a numeric character according to RFC952");
|
|
117 | 117 |
preg_match("/.*\-/", $_POST['hostname'], $matches); |
118 | 118 |
if($matches) |
119 |
$input_errors[] = gettext("The hostname cannot end with a hyphen according to RFC1123");
|
|
119 |
$input_errors[] = gettext("The hostname cannot end with a hyphen according to RFC952");
|
|
120 | 120 |
if (!is_hostname($_POST['hostname'])) { |
121 | 121 |
$input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'."); |
122 | 122 |
} else { |
Also available in: Unified diff
Forced commit to note that should have read RFC952