diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-02-27 14:54:13 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-02-27 14:54:13 +0100 |
commit | 50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc (patch) | |
tree | 5dbaa90d673b2c6de97c4cdb869e5047f54472d5 /buglist.cgi | |
parent | Bug 696387: Remove useless calls to field-descs.none.tmpl (diff) | |
download | bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.gz bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.bz2 bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.zip |
Bug 730670: Do not redirect in buglist.cgi to improve performance
r=glob a=LpSolit
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-x | buglist.cgi | 5 |
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'); |