From 50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Mon, 27 Feb 2012 14:54:13 +0100 Subject: Bug 730670: Do not redirect in buglist.cgi to improve performance r=glob a=LpSolit --- buglist.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 0350ba7ef..98b10a75d 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -37,19 +37,20 @@ my $cgi = Bugzilla->cgi; my $dbh = Bugzilla->dbh; my $template = Bugzilla->template; my $vars = {}; -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'. my $user = Bugzilla->login(); +$cgi->redirect_search_url(); + +my $buffer = $cgi->query_string(); if (length($buffer) == 0) { print $cgi->header(-refresh=> '10; URL=query.cgi'); ThrowUserError("buglist_parameters_required"); } -$cgi->redirect_search_url(); # Determine whether this is a quicksearch query. my $searchstring = $cgi->param('quicksearch'); -- cgit v1.2.3-24-g4f1b