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') { ...@@ -146,8 +146,7 @@ if ($action eq 'search') {
} elsif ($matchtype eq 'exact') { } elsif ($matchtype eq 'exact') {
$query .= $expr . ' = ?'; $query .= $expr . ' = ?';
} else { # substr or unknown } else { # substr or unknown
$query .= $dbh->sql_istrcmp($expr, '?', 'LIKE'); $query .= $dbh->sql_iposition('?', $expr) . ' > 0';
$matchstr = "%$matchstr%";
} }
$nextCondition = 'AND'; $nextCondition = 'AND';
push(@bindValues, $matchstr); 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