summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcpv6_edit.php
diff options
context:
space:
mode:
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