From 46c89016520cf272223cba52e704388fa94b4392 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Mon, 24 Oct 2005 04:47:50 +0000 Subject: Bug 312307: Misused Throw*Error tags in code and templates - Patch by Dennis Melentyev r=LpSolit a=justdave --- post_bug.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'post_bug.cgi') diff --git a/post_bug.cgi b/post_bug.cgi index 18faa5090..0965728b7 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -328,7 +328,7 @@ foreach my $b (grep(/^bit-\d*$/, $cgi->param())) { if ($cgi->param($b)) { my $v = substr($b, 4); detaint_natural($v) - || ThrowCodeError("group_id_invalid"); + || ThrowUserError("invalid_group_ID"); if (!GroupIsActive($v)) { # Prevent the user from adding the bug to an inactive group. # Should only happen if there is a bug in Bugzilla or the user -- cgit v1.2.3-24-g4f1b