plugins/SpecialUserFuncs.php
changeset 1280 871f17a0d27d
parent 1266 f3933b355229
child 1293 83e0fcd008e1
--- a/plugins/SpecialUserFuncs.php	Fri Jul 30 21:31:30 2010 -0400
+++ b/plugins/SpecialUserFuncs.php	Fri Jul 30 21:32:05 2010 -0400
@@ -1616,13 +1616,13 @@
 	if ( isset($_GET['finduser']) )
 	{
 		$finduser = str_replace(array(  '%',   '_'),
-														array('\\%', '\\_'),
-														$_GET['finduser']);
+								array('\\%', '\\_'),
+								$_GET['finduser']);
 		$finduser = str_replace(array('*', '?'),
-														array('%', '_'),
-														$finduser);
+								array('%', '_'),
+								$finduser);
 		$finduser = $db->escape($finduser);
-		$username_where = ENANO_SQLFUNC_LOWERCASE . '(u.username) LIKE \'%' . strtolower($finduser) . '%\'';
+		$username_where = ENANO_SQLFUNC_LOWERCASE . '(u.username) LIKE \'%' . strtolower($finduser) . '%\' OR u.username LIKE \'' . $finduser . '\'';
 		$finduser_url = 'finduser=' . rawurlencode($_GET['finduser']) . '&';
 	}
 	else