diff options
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 4 |
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 { |