From: Sunil Joshi Date: Sun, 14 Oct 2012 18:04:21 +0000 (+0200) Subject: Bug 163890: editusers.cgi incorrectly treats "_" (underscore) as a wildcard X-Git-Tag: bugzilla-4.4rc1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71c3a44e7663bc2af6c281a96b637af51632df54;p=thirdparty%2Fbugzilla.git Bug 163890: editusers.cgi incorrectly treats "_" (underscore) as a wildcard r/a=LpSolit --- diff --git a/editusers.cgi b/editusers.cgi index e2675921bd..4fca85daa0 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -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);