summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-11-11 00:21:32 +0545
committerPhil Davis <phil.davis@inf.org>2014-11-11 00:21:32 +0545
commit762fc5c06b90930db764f38b1f94e8e4a38a927c (patch)
tree362de6928d9fb5544c3dccda89b6b0bfb6ee0d95 /usr/local/www/services_dhcpv6_edit.php
parentc941faa40b64b840eca2c28814d137fbc74ce7f2 (diff)
downloadpfsense-762fc5c06b90930db764f38b1f94e8e4a38a927c.zip
pfsense-762fc5c06b90930db764f38b1f94e8e4a38a927c.tar.gz
Stop FQDN in hostname field
using new is_unqualified_hostname function
Diffstat (limited to 'usr/local/www/services_dhcpv6_edit.php')
-rw-r--r--usr/local/www/services_dhcpv6_edit.php2
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");
}
}
OpenPOWER on IntegriCloud