Made the username validation regexp in install less picky since it was blacklisting two of the letters in my name. >.<
authorDan
Thu, 22 Nov 2007 02:10:12 -0500
changeset 284 0f039028f7a5
parent 283 58290f140eba
child 285 7846d45bd250
Made the username validation regexp in install less picky since it was blacklisting two of the letters in my name. >.<
install.php
--- a/install.php	Wed Nov 21 22:50:08 2007 -0500
+++ b/install.php	Thu Nov 22 02:10:12 2007 -0500
@@ -1359,7 +1359,7 @@
       {
         var frm = document.forms.login;
         ret = true;
-        if ( frm.admin_user.value.match(/^([^<>&\?\'"%\n\r\t\a\/]+)$/) && !frm.admin_user.value.match(/^(?:(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$/) && frm.admin_user.value.toLowerCase() != \'anonymous\' )
+        if ( frm.admin_user.value.match(/^([^<>&\?\'"%\/]+)$/) && !frm.admin_user.value.match(/^(?:(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])\\.){3}(?:\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])$/) && frm.admin_user.value.toLowerCase() != \'anonymous\' )
         {
           document.getElementById(\'s_user\').src = \'images/good.gif\';
         }