summaryrefslogtreecommitdiffstats
path: root/usr/local/www/wizards
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-03-12 05:44:37 +0000
committerBill Marquette <billm@pfsense.org>2005-03-12 05:44:37 +0000
commit6bb5c9aa869fcd65d4f915884a019484f7d4b280 (patch)
treed4a30511ba27ef354fde77a0e20e93c3b8d93e98 /usr/local/www/wizards
parent0d34044c583f8784cd261ab31d511654b1a2cd52 (diff)
downloadpfsense-6bb5c9aa869fcd65d4f915884a019484f7d4b280.zip
pfsense-6bb5c9aa869fcd65d4f915884a019484f7d4b280.tar.gz
Client side input validation for the wizard
Fix invalid domain name bug
Diffstat (limited to 'usr/local/www/wizards')
-rw-r--r--usr/local/www/wizards/setup_wizard.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index 1030dc8..7436db2 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -29,6 +29,8 @@
<type>input</type>
<bindstofield>system->domain</bindstofield>
<description>EXAMPLE: mydomain.com</description>
+ <validate>^[a-z0-9.]+$</validate>
+ <message>Domain name field is invalid</message>
</field>
<field>
<name>Primary DNS Server</name>
@@ -2468,4 +2470,4 @@
system("/sbin/shutdown -r now");
</stepafterformdisplay>
</step>
-</pfsensewizard> \ No newline at end of file
+</pfsensewizard>
OpenPOWER on IntegriCloud