]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 628806: user selection field in editusers should strip leading and trailing white...
authortimeless <timeless@bemail.org>
Mon, 29 Aug 2011 23:23:40 +0000 (01:23 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 29 Aug 2011 23:23:40 +0000 (01:23 +0200)
r/a=LpSolit

editusers.cgi

index 12c4dc2304af7db28d1d77b9edcacdee325b94c7..c25c5e9ef07f7a7d29622a167a240c568274d9ac 100755 (executable)
@@ -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 ' .