Commit 71c3a44e 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 0b816e82
......@@ -145,8 +145,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