diff options
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index b6300fd..d0ef4b3 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -130,6 +130,8 @@ <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> @@ -141,6 +143,14 @@ <type>submit</type> </field> </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; + } + ]]> + </stepsubmitphpaction> </step> <step> <id>4</id> |