From 76f2f9d024400d455c2081a81d106ee580c916f3 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 28 Dec 2005 19:55:40 +0000 Subject: [PATCH] =?utf8?q?Bug=20320727:=20Incorrect=20footer=20if=20no=20q?= =?utf8?q?uery=20is=20passed=20to=20buglist.cgi=20-=20Patch=20by=20Fr?= =?utf8?q?=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwicked=20a?= =?utf8?q?=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- buglist.cgi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/buglist.cgi b/buglist.cgi index f41f683191..9e6358d497 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -59,6 +59,10 @@ use vars qw($db_name my $cgi = Bugzilla->cgi; my $dbh = Bugzilla->dbh; +# We have to check the login here to get the correct footer +# if an error is thrown. +Bugzilla->login(); + if (length($::buffer) == 0) { print $cgi->header(-refresh=> '10; URL=query.cgi'); ThrowUserError("buglist_parameters_required"); @@ -80,9 +84,6 @@ if ($dotweak) { object => "multiple_bugs"}); GetVersionTable(); } -else { - Bugzilla->login(); -} # Hack to support legacy applications that think the RDF ctype is at format=rdf. if (defined $cgi->param('format') && $cgi->param('format') eq "rdf" -- 2.47.2