From 8a85ab907d1c25bda9a867150fdd32025f576b4a Mon Sep 17 00:00:00 2001 From: jim-p Date: Sat, 6 Aug 2011 21:20:58 -0400 Subject: Apparently RFC 1123 overrides RFC 952 and hostnames can start with digits these days. --- usr/local/www/services_dhcp_edit.php | 3 --- usr/local/www/services_dhcpv6_edit.php | 3 --- 2 files changed, 6 deletions(-) (limited to 'usr/local') diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php index ecde99b..15e1fee 100755 --- a/usr/local/www/services_dhcp_edit.php +++ b/usr/local/www/services_dhcp_edit.php @@ -111,9 +111,6 @@ if ($_POST) { $_POST['mac'] = strtolower(str_replace("-", ":", $_POST['mac'])); if ($_POST['hostname']) { - preg_match("/^[0-9]/", $_POST['hostname'], $matches); - if($matches) - $input_errors[] = gettext("The hostname cannot start with a numeric character according to RFC952"); preg_match("/\-\$/", $_POST['hostname'], $matches); if($matches) $input_errors[] = gettext("The hostname cannot end with a hyphen according to RFC952"); diff --git a/usr/local/www/services_dhcpv6_edit.php b/usr/local/www/services_dhcpv6_edit.php index ef87477..61f060e 100644 --- a/usr/local/www/services_dhcpv6_edit.php +++ b/usr/local/www/services_dhcpv6_edit.php @@ -108,9 +108,6 @@ if ($_POST) { do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); if ($_POST['hostname']) { - preg_match("/^[0-9]/", $_POST['hostname'], $matches); - if($matches) - $input_errors[] = gettext("The hostname cannot start with a numeric character according to RFC952"); preg_match("/\-\$/", $_POST['hostname'], $matches); if($matches) $input_errors[] = gettext("The hostname cannot end with a hyphen according to RFC952"); -- cgit v1.1