From 18e840ac66043cb3f7561d0f016e1c71534b30e6 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 14 Sep 2003 08:57:18 +0000 Subject: - Bugfix: fixed string being check_query()-ed twice. Bug #2425. Patch by Matt. --- modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/user') diff --git a/modules/user/user.module b/modules/user/user.module index 6248cf16a..48189a39d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -351,7 +351,7 @@ function user_perm() { function user_search($keys) { - $result = db_query_range("SELECT * FROM {users} WHERE name LIKE '%$keys%'", 0, 20); + $result = db_query_range("SELECT * FROM {users} WHERE name LIKE '%". check_query($keys) ."%'", 0, 20); while ($account = db_fetch_object($result)) { $find[$i++] = array("title" => $account->name, "link" => (strstr(request_uri(), "admin") ? url("admin/user/edit/$account->uid") : url("user/view/$account->uid")), "user" => $account->name); } -- cgit v1.2.3