From 4b35dd66013c6a300b60fbca969497fd4f9f99fd Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 12 Dec 2005 11:26:58 +0000 Subject: [PATCH] =?utf8?q?Bug=20319086:=20editusers.cgi=20throws=20an=20er?= =?utf8?q?ror=20when=20editusers.cgi=20is=20given=20an=20invalid=20matchty?= =?utf8?q?pe=20parameter=20-=20Patch=20by=20Fr=C3=A9d=C3=A9ric=20Buclin=20?= =?utf8?q?=20r=3Dwicked=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- editusers.cgi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); -- 2.47.3