summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-06 21:20:58 -0400
committerjim-p <jimp@pfsense.org>2011-08-06 21:22:44 -0400
commit4f163cb886685867283cd756ded072b82f515674 (patch)
tree83e6b5c37bd728f9cf858ccec670af111237dc9d /usr
parentff1a605cb37c6d0c74f85fb7687625a41c4bb606 (diff)
downloadpfsense-4f163cb886685867283cd756ded072b82f515674.zip
pfsense-4f163cb886685867283cd756ded072b82f515674.tar.gz
Apparently RFC 1123 overrides RFC 952 and hostnames can start with digits these days.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/services_dhcp_edit.php3
1 files changed, 0 insertions, 3 deletions
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");
OpenPOWER on IntegriCloud