summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dhcp_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-11-22 20:02:39 -0500
committerScott Ullrich <sullrich@pfsense.org>2009-11-22 20:02:39 -0500
commit07ab49263081cfee783b54557e4a373462486e95 (patch)
tree1f2c77f55e489d0d020f63e87b293abae0bde3d3 /usr/local/www/services_dhcp_edit.php
parentbe1db1d338b70a3de9a392a4a0ed72f6272c220f (diff)
downloadpfsense-07ab49263081cfee783b54557e4a373462486e95.zip
pfsense-07ab49263081cfee783b54557e4a373462486e95.tar.gz
Update fieldname, it should be hostname and not host Ticket #159
Diffstat (limited to 'usr/local/www/services_dhcp_edit.php')
-rwxr-xr-xusr/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 483675a..1124e8f 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -109,7 +109,7 @@ if ($_POST) {
/* normalize MAC addresses - lowercase and convert Windows-ized hyphenated MACs to colon delimited */
$_POST['mac'] = strtolower(str_replace("-", ":", $_POST['mac']));
- if (($_POST['host'] && !is_hostname($_POST['host']))) {
+ if (($_POST['hostname'] && !is_hostname($_POST['hostname']))) {
$input_errors[] = "A valid host name must be specified.";
}
if (($_POST['ipaddr'] && !is_ipaddr($_POST['ipaddr']))) {
OpenPOWER on IntegriCloud