summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorDavid Lawrence <dlawrence@mozilla.com>2011-09-02 21:50:06 +0200
committerDavid Lawrence <dlawrence@mozilla.com>2011-09-02 21:50:06 +0200
commitd3144ccde7c1d3c432baaf43fe0b79a6c30eb7b0 (patch)
tree8f7fac4d4b98c80a090e74934a754443c127d846 /editusers.cgi
parent9344a458c830ba066b9004c301d0fc6cabc8f229 (diff)
parentbf9156ad5f0a57a467dd46292efb2f0a47ec845e (diff)
downloadbugzilla-d3144ccde7c1d3c432baaf43fe0b79a6c30eb7b0.tar.gz
bugzilla-d3144ccde7c1d3c432baaf43fe0b79a6c30eb7b0.tar.xz
merged with bugzilla/4.2
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/editusers.cgi b/editusers.cgi
index 2efdd01c8..c25c5e9ef 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -74,7 +74,7 @@ if ($action eq 'search') {
###########################################################################
} elsif ($action eq 'list') {
my $matchvalue = $cgi->param('matchvalue') || '';
- my $matchstr = $cgi->param('matchstr');
+ my $matchstr = trim($cgi->param('matchstr'));
my $matchtype = $cgi->param('matchtype');
my $grouprestrict = $cgi->param('grouprestrict') || '0';
my $query = 'SELECT DISTINCT userid, login_name, realname, is_enabled ' .
@@ -137,7 +137,7 @@ if ($action eq 'search') {
$expr = "profiles.login_name";
}
- if ($matchstr =~ /^(regexp|notregexp|exact)$/) {
+ if ($matchtype =~ /^(regexp|notregexp|exact)$/) {
$matchstr ||= '.';
}
else {