From 9048c371060791a46e117a580bd53a2db2602145 Mon Sep 17 00:00:00 2001 From: Sunil Joshi Date: Sun, 14 Oct 2012 20:03:17 +0200 Subject: Bug 163890: editusers.cgi incorrectly treats "_" (underscore) as a wildcard r/a=LpSolit --- editusers.cgi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'editusers.cgi') diff --git a/editusers.cgi b/editusers.cgi index 30a747ded..12f7a548d 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -146,8 +146,7 @@ if ($action eq 'search') { } elsif ($matchtype eq 'exact') { $query .= $expr . ' = ?'; } else { # substr or unknown - $query .= $dbh->sql_istrcmp($expr, '?', 'LIKE'); - $matchstr = "%$matchstr%"; + $query .= $dbh->sql_iposition('?', $expr) . ' > 0'; } $nextCondition = 'AND'; push(@bindValues, $matchstr); -- cgit v1.2.3-24-g4f1b