summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-09-24 09:30:57 -0400
committerjim-p <jimp@pfsense.org>2013-09-24 09:31:49 -0400
commit11d8b2cd8b7d7748db3f9425a9f8c9cf9b300a5c (patch)
treef494b18cafce4cd169db667ccecaa7961a56d85c /usr/local/www
parent7786cd6e377526eee721901422ef46b9d05eea66 (diff)
downloadpfsense-11d8b2cd8b7d7748db3f9425a9f8c9cf9b300a5c.zip
pfsense-11d8b2cd8b7d7748db3f9425a9f8c9cf9b300a5c.tar.gz
Allow multiple valid time servers to be entered in the wizard, as they are allowed under System > General
Diffstat (limited to 'usr/local/www')
-rw-r--r--usr/local/www/wizards/setup_wizard.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index 85f1152..db9f05d 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -138,8 +138,6 @@
<description>Enter the hostname (FQDN) of the time server.</description>
<type>input</type>
<bindstofield>system->timeservers</bindstofield>
- <validate>^[a-z0-9.|-]+$</validate>
- <message>Invalid Time Server Field</message>
</field>
<field>
<name>Timezone</name>
@@ -153,9 +151,11 @@
</fields>
<stepsubmitphpaction>
<![CDATA[
- if(!empty($_POST['timeserverhostname']) && !(is_hostname($_POST['timeserverhostname']) || is_ipaddr($_POST['timeserverhostname']))) {
- print_info_box_np("Invalid Time Server. Please press back in your browser window and correct.");
- die;
+ foreach (explode(' ', $_POST['timeserverhostname']) as $ts) {
+ if (!is_domain($ts)) {
+ print_info_box_np(gettext("NTP Time Server names may only contain the characters a-z, 0-9, '-' and '.'. Entries may be separated by spaces. Please press back in your browser window and correct."));
+ die;
+ }
}
]]>
</stepsubmitphpaction>
OpenPOWER on IntegriCloud