summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-11-18 07:46:56 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-11-18 07:46:56 -0200
commit8a5265b212bcd4518c9dbb74c30408c89709a1b5 (patch)
treed6295b60f47c7043e3bbe96d086482662ab15adb /usr/local/www/services_dhcp_edit.php
parenta0b72ec3700fae82a0fd42f28b29bdd2bf274ce7 (diff)
parentda66ef4f93161efffa53f62a59bb1cbdf5e1f41b (diff)
downloadpfsense-8a5265b212bcd4518c9dbb74c30408c89709a1b5.zip
pfsense-8a5265b212bcd4518c9dbb74c30408c89709a1b5.tar.gz
Merge pull request #1332 from phil-davis/patch-3
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rw-r--r--usr/local/www/services_dhcp_edit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index 5ad02db..2fb7f17 100644
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -171,7 +171,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