From: lpsolit%gmail.com <> Date: Mon, 12 Dec 2005 11:26:58 +0000 (+0000) Subject: Bug 319086: editusers.cgi throws an error when editusers.cgi is given an invalid... X-Git-Tag: bugzilla-2.18.5~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b35dd66013c6a300b60fbca969497fd4f9f99fd;p=thirdparty%2Fbugzilla.git Bug 319086: editusers.cgi throws an error when editusers.cgi is given an invalid matchtype parameter - Patch by Frédéric Buclin r=wicked a=justdave --- diff --git a/editusers.cgi b/editusers.cgi index 1d10304ab7..c7701656bd 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -319,7 +319,9 @@ if ($action eq 'list') { $matchstr = '.' unless $matchstr; } else { - die "Unknown match type"; + print "Unknown match type: " . html_quote($::FORM{'matchtype'}); + PutTrailer(); + exit; } $query .= SqlQuote($matchstr) . " ORDER BY login_name"; } elsif (exists $::FORM{'group'}) { @@ -328,7 +330,9 @@ if ($action eq 'list') { "FROM profiles, user_group_map WHERE profiles.userid = user_group_map.user_id AND group_id=" . $::FORM{'group'} . " ORDER BY login_name"; } else { - die "Missing parameters"; + print "The search cannot be executed. There are missing parameters."; + PutTrailer(); + exit; } SendSQL($query);