Commit 6757499a authored by Daryl Herzmann's avatar Daryl Herzmann Committed by akrherz

don't hardcode searchSQL for findUsers, resolves OF-483


git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@12878 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0cfa5e95
......@@ -319,7 +319,7 @@ public class JDBCUserProvider implements UserProvider {
ResultSet rs = null;
try {
StringBuilder sql = new StringBuilder(90);
sql.append("SELECT username FROM ofUser WHERE");
sql.append(searchSQL);
boolean first = true;
if (fields.contains("Username")) {
sql.append(" username LIKE ?");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment