diff options
author | Phil Davis <phil.davis@inf.org> | 2014-11-11 00:21:32 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2014-11-11 00:21:32 +0545 |
commit | 762fc5c06b90930db764f38b1f94e8e4a38a927c (patch) | |
tree | 362de6928d9fb5544c3dccda89b6b0bfb6ee0d95 | |
parent | c941faa40b64b840eca2c28814d137fbc74ce7f2 (diff) | |
download | pfsense-762fc5c06b90930db764f38b1f94e8e4a38a927c.zip pfsense-762fc5c06b90930db764f38b1f94e8e4a38a927c.tar.gz |
Stop FQDN in hostname field
using new is_unqualified_hostname function
-rw-r--r-- | usr/local/www/services_dhcpv6_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcpv6_edit.php b/usr/local/www/services_dhcpv6_edit.php index 99a8f7b..a2cdfa2 100644 --- a/usr/local/www/services_dhcpv6_edit.php +++ b/usr/local/www/services_dhcpv6_edit.php @@ -122,7 +122,7 @@ if ($_POST) { if (!is_hostname($_POST['hostname'])) { $input_errors[] = gettext("The hostname can only contain the characters A-Z, 0-9 and '-'."); } else { - if (strpos($_POST['hostname'],'.')) { + if (!is_unqualified_hostname($_POST['hostname'])) { $input_errors[] = gettext("A valid hostname is specified, but the domain name part should be omitted"); } } |