summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-11-28 23:41:55 -0500
committerChris Buechler <cmb@pfsense.org>2009-11-28 23:41:55 -0500
commit407f6220fee9f47c76ab8bd514caaaa26290bc99 (patch)
treeaabf2b86bd1913b14c5db05e1b869d38f67e80a1 /usr/local/www
parentd539e0e81315def8b1ae5d2f9096e068420cdab4 (diff)
downloadpfsense-407f6220fee9f47c76ab8bd514caaaa26290bc99.zip
pfsense-407f6220fee9f47c76ab8bd514caaaa26290bc99.tar.gz
clarify what is valid for input errors on hostname
Diffstat (limited to 'usr/local/www')
-rwxr-xr-xusr/local/www/load_balancer_monitor_edit.php2
-rwxr-xr-xusr/local/www/services_dhcp_edit.php2
-rwxr-xr-xusr/local/www/services_dnsmasq_edit.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/load_balancer_monitor_edit.php b/usr/local/www/load_balancer_monitor_edit.php
index 05d5072..320a54f 100755
--- a/usr/local/www/load_balancer_monitor_edit.php
+++ b/usr/local/www/load_balancer_monitor_edit.php
@@ -106,7 +106,7 @@ if ($_POST) {
if (is_array($pconfig['options'])) {
if (isset($pconfig['options']['host']) && $pconfig['options']['host'] != "") {
if (!is_hostname($pconfig['options']['host'])) {
- $input_errors[] = "Invalid hostname.";
+ $input_errors[] = "The hostname can only contain the characters A-Z, 0-9 and '-'.";
}
}
if (isset($pconfig['options']['code']) && $pconfig['options']['code'] != "") {
diff --git a/usr/local/www/services_dhcp_edit.php b/usr/local/www/services_dhcp_edit.php
index e687082..94ba506 100755
--- a/usr/local/www/services_dhcp_edit.php
+++ b/usr/local/www/services_dhcp_edit.php
@@ -111,7 +111,7 @@ if ($_POST) {
if ($_POST['hostname']) {
if (!is_hostname($_POST['hostname'])) {
- $input_errors[] = "A valid host name must be specified.";
+ $input_errors[] = "The hostname can only contain the characters A-Z, 0-9 and '-'.";
} else {
if (strpos($_POST['hostname'],'.')) {
$input_errors[] = "A valid hostname is specified, but the domain name part should be omitted";
diff --git a/usr/local/www/services_dnsmasq_edit.php b/usr/local/www/services_dnsmasq_edit.php
index 1f269ea..4988640 100755
--- a/usr/local/www/services_dnsmasq_edit.php
+++ b/usr/local/www/services_dnsmasq_edit.php
@@ -83,7 +83,7 @@ if ($_POST) {
do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors);
if (($_POST['host'] && !is_hostname($_POST['host'])))
- $input_errors[] = "A valid host must be specified.";
+ $input_errors[] = "The hostname can only contain the characters A-Z, 0-9 and '-'.";
if (($_POST['domain'] && !is_domain($_POST['domain'])))
$input_errors[] = "A valid domain must be specified.";
OpenPOWER on IntegriCloud