plugins/SpecialUserFuncs.php
changeset 217 5bcdee999015
parent 212 d57af0b0302e
child 229 b2f985e4cef3
--- a/plugins/SpecialUserFuncs.php	Sat Nov 17 23:30:23 2007 -0500
+++ b/plugins/SpecialUserFuncs.php	Sun Nov 18 18:44:55 2007 -0500
@@ -655,7 +655,7 @@
             if(!namegood)
             {
               //if(frm.username.value.match(/^([A-z0-9 \!@\-\(\)]+){2,}$/ig))
-              var regex = new RegExp('^([^<>_&\?]+){2,}$', 'ig');
+              var regex = new RegExp('^([^<>&\?]+){2,}$', 'ig');
               if ( frm.username.value.match(regex) )
               {
                 document.getElementById('s_username').src='<?php echo scriptPath; ?>/images/unknown.gif';
@@ -717,10 +717,8 @@
             
             if(!namegood)
             {
-              <?php
-              // sorry for this ugly hack but jedit gets f***ed otherwise
-              echo 'if(frm.username.value.match(/^([A-z0-9 \.:\!@\#\*]+){2,}$/ig))';
-              ?>
+              var regex = new RegExp('^([^<>&\?]+){2,}$', 'ig');
+              if ( frm.username.value.match(regex) )
               {
                 document.getElementById('s_username').src='<?php echo scriptPath; ?>/images/unknown.gif';
                 document.getElementById('e_username').innerHTML = '';