summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-01 20:00:47 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-01 20:00:47 +0000
commit27d7455edb329f590aa55b3932500b74f9926855 (patch)
tree4d9802bfdace4161bbfac1d9629b5c288c7e1d3b /modules/user
parentc403b16006428696815d3fc8fc9640c976d80e13 (diff)
downloadbrdo-27d7455edb329f590aa55b3932500b74f9926855.tar.gz
brdo-27d7455edb329f590aa55b3932500b74f9926855.tar.bz2
- Patch #333054 by c960657: page cache should be case sensitive.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module6
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index ac15ecdbe..c6ccc530e 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -216,14 +216,12 @@ function user_load_multiple($uids = array(), $conditions = array(), $reset = FAL
}
// If the conditions array is populated, add those to the query.
if ($conditions) {
- // TODO D7: Using LIKE() to get a case insensitive comparison because Crell
- // and chx promise that dbtng will map it to ILIKE in postgres.
if (isset($conditions['name'])) {
- $query->condition('u.name', $conditions['name'], 'LIKE');
+ $query->where('LOWER(u.name) = LOWER(:name)', array(':name' => $conditions['name']));
unset($conditions['name']);
}
if (isset($conditions['mail'])) {
- $query->condition('u.mail', $conditions['mail'], 'LIKE');
+ $query->where('LOWER(u.mail) = LOWER(:mail)', array(':mail' => $conditions['mail']));
unset($conditions['mail']);
}
foreach ($conditions as $field => $value) {