Commit 9048c371 authored by Sunil Joshi's avatar Sunil Joshi Committed by Frédéric Buclin

Bug 163890: editusers.cgi incorrectly treats "_" (underscore) as a wildcard

r/a=LpSolit
parent bb704999
......@@ -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);
......
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