Commit fcb78bd2 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 320727: Incorrect footer if no query is passed to buglist.cgi - Patch by…

Bug 320727: Incorrect footer if no query is passed to buglist.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
parent 2467dc37
...@@ -60,6 +60,11 @@ my $template = Bugzilla->template; ...@@ -60,6 +60,11 @@ my $template = Bugzilla->template;
my $vars = {}; my $vars = {};
my $buffer = $cgi->query_string(); my $buffer = $cgi->query_string();
# We have to check the login here to get the correct footer if an error is
# thrown and to prevent a logged out user to use QuickSearch if 'requirelogin'
# is turned 'on'.
Bugzilla->login();
if (length($buffer) == 0) { if (length($buffer) == 0) {
print $cgi->header(-refresh=> '10; URL=query.cgi'); print $cgi->header(-refresh=> '10; URL=query.cgi');
ThrowUserError("buglist_parameters_required"); ThrowUserError("buglist_parameters_required");
...@@ -90,9 +95,6 @@ if ($dotweak) { ...@@ -90,9 +95,6 @@ if ($dotweak) {
object => "multiple_bugs"}); object => "multiple_bugs"});
GetVersionTable(); GetVersionTable();
} }
else {
Bugzilla->login();
}
# Hack to support legacy applications that think the RDF ctype is at format=rdf. # Hack to support legacy applications that think the RDF ctype is at format=rdf.
if (defined $cgi->param('format') && $cgi->param('format') eq "rdf" if (defined $cgi->param('format') && $cgi->param('format') eq "rdf"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment