summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi3
1 files changed, 1 insertions, 2 deletions
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);