Javascript validation for install DB info form didn't allow dashes
authorDan
Sat, 17 Nov 2007 18:54:13 -0500
changeset 262 596945fa6e56
parent 261 c7c2fde4f98d
child 263 d57af0b0302e
Javascript validation for install DB info form didn't allow dashes
install.php
--- a/install.php	Sat Nov 17 18:51:06 2007 -0500
+++ b/install.php	Sat Nov 17 18:54:13 2007 -0500
@@ -1125,7 +1125,7 @@
           document.getElementById('s_db_host').src='images/bad.gif';
           ret = false;
         }
-        if(frm.db_name.value.match(/^([a-z0-9_]+)$/g))
+        if(frm.db_name.value.match(/^([a-z0-9_-]+)$/g))
         {
           document.getElementById('s_db_name').src='images/unknown.gif';
         }