includes/pageutils.php
changeset 270 5bcdee999015
parent 260 661beb9b0fa3
child 271 f088805540ae
child 285 7846d45bd250
--- a/includes/pageutils.php	Sat Nov 17 23:30:23 2007 -0500
+++ b/includes/pageutils.php	Sun Nov 18 18:44:55 2007 -0500
@@ -23,6 +23,7 @@
   function checkusername($name)
   {
     global $db, $session, $paths, $template, $plugins; // Common objects
+    $name = str_replace('_', ' ', $name);
     $q = $db->sql_query('SELECT username FROM ' . table_prefix.'users WHERE username=\'' . $db->escape(rawurldecode($name)) . '\'');
     if ( !$q )
     {