From: timeless Date: Mon, 29 Aug 2011 23:23:40 +0000 (+0200) Subject: Bug 628806: user selection field in editusers should strip leading and trailing white... X-Git-Tag: bugzilla-4.2rc1~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0f86b5d25f291b40321a0b440f3cd0987378191;p=thirdparty%2Fbugzilla.git Bug 628806: user selection field in editusers should strip leading and trailing whitespace r/a=LpSolit --- diff --git a/editusers.cgi b/editusers.cgi index 12c4dc2304..c25c5e9ef0 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 ' .