summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2012-02-27 14:54:13 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2012-02-27 14:54:13 +0100
commit50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc (patch)
tree5dbaa90d673b2c6de97c4cdb869e5047f54472d5 /buglist.cgi
parentc650592f1cdb27e5605d70a80ae03e9a2afb879b (diff)
downloadbugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.gz
bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.xz
Bug 730670: Do not redirect in buglist.cgi to improve performance
r=glob a=LpSolit
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi5
1 files changed, 3 insertions, 2 deletions
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');