summaryrefslogtreecommitdiffstats
path: root/Bugzilla/User.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2009-03-31 21:24:22 +0200
committerlpsolit%gmail.com <>2009-03-31 21:24:22 +0200
commitffc663e11c9bd310e5a15452739dc64b88095611 (patch)
treea577f0f94c9a97fd088537c060f497907dc1b0ad /Bugzilla/User.pm
parentd8dc06a626ad4542d9d5db9c5e2a2de7f4003cc6 (diff)
downloadbugzilla-ffc663e11c9bd310e5a15452739dc64b88095611.tar.gz
bugzilla-ffc663e11c9bd310e5a15452739dc64b88095611.tar.xz
Bug 399089: Remove the 'usermatchmode' parameter - Patch by Frédéric Buclin <LpSolit@gmail.com> r/a=mkanat
Diffstat (limited to 'Bugzilla/User.pm')
-rw-r--r--Bugzilla/User.pm11
1 files changed, 2 insertions, 9 deletions
diff --git a/Bugzilla/User.pm b/Bugzilla/User.pm
index d373f019d..1e20ef73d 100644
--- a/Bugzilla/User.pm
+++ b/Bugzilla/User.pm
@@ -1012,11 +1012,7 @@ sub match {
# first try wildcards
my $wildstr = $str;
- if ($wildstr =~ s/\*/\%/g # don't do wildcards if no '*' in the string
- # or if we only want exact matches
- && Bugzilla->params->{'usermatchmode'} ne 'off')
- {
-
+ if ($wildstr =~ s/\*/\%/g) { # don't do wildcards if no '*' in the string
# Build the query.
trick_taint($wildstr);
my $query = "SELECT DISTINCT login_name FROM profiles ";
@@ -1054,10 +1050,7 @@ sub match {
}
# then try substring search
- if ((scalar(@users) == 0)
- && (Bugzilla->params->{'usermatchmode'} eq 'search')
- && (length($str) >= 3))
- {
+ if (!scalar(@users) && length($str) >= 3) {
trick_taint($str);
my $query = "SELECT DISTINCT login_name FROM profiles ";