equal
deleted
inserted
replaced
1614 |
1614 |
1615 // User search |
1615 // User search |
1616 if ( isset($_GET['finduser']) ) |
1616 if ( isset($_GET['finduser']) ) |
1617 { |
1617 { |
1618 $finduser = str_replace(array( '%', '_'), |
1618 $finduser = str_replace(array( '%', '_'), |
1619 array('\\%', '\\_'), |
1619 array('\\%', '\\_'), |
1620 $_GET['finduser']); |
1620 $_GET['finduser']); |
1621 $finduser = str_replace(array('*', '?'), |
1621 $finduser = str_replace(array('*', '?'), |
1622 array('%', '_'), |
1622 array('%', '_'), |
1623 $finduser); |
1623 $finduser); |
1624 $finduser = $db->escape($finduser); |
1624 $finduser = $db->escape($finduser); |
1625 $username_where = ENANO_SQLFUNC_LOWERCASE . '(u.username) LIKE \'%' . strtolower($finduser) . '%\''; |
1625 $username_where = ENANO_SQLFUNC_LOWERCASE . '(u.username) LIKE \'%' . strtolower($finduser) . '%\' OR u.username LIKE \'' . $finduser . '\''; |
1626 $finduser_url = 'finduser=' . rawurlencode($_GET['finduser']) . '&'; |
1626 $finduser_url = 'finduser=' . rawurlencode($_GET['finduser']) . '&'; |
1627 } |
1627 } |
1628 else |
1628 else |
1629 { |
1629 { |
1630 if ( ENANO_DBLAYER == 'MYSQL' ) |
1630 if ( ENANO_DBLAYER == 'MYSQL' ) |