summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-11-11 00:20:35 +0545
committerPhil Davis <phil.davis@inf.org>2014-11-11 00:20:35 +0545
commitc941faa40b64b840eca2c28814d137fbc74ce7f2 (patch)
tree4e2fe908af0e09a082a970e9e553d23fc804d466 /usr/local/www/services_dhcp_edit.php
parent34c2b8f24f6dc0a083205d1ecb5e751cc015dcdb (diff)
downloadpfsense-c941faa40b64b840eca2c28814d137fbc74ce7f2.zip
pfsense-c941faa40b64b840eca2c28814d137fbc74ce7f2.tar.gz
Stop FQDN in hostname field
using new is_unqualified_hostname function
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 29c2a72..0bbba1c 100644
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -170,7 +170,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