summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-06-18 08:27:03 +0200
committerByron Jones <glob@mozilla.com>2014-06-18 08:27:03 +0200
commit310f1d08f5f3901b99775823009d763876a0f093 (patch)
treed06c96be8665a442d97421d727b45219b61a1855 /Bugzilla
parentd83e1befce44ae92c0e26c6dfa47a4d3326b0632 (diff)
downloadbugzilla-310f1d08f5f3901b99775823009d763876a0f093.tar.gz
bugzilla-310f1d08f5f3901b99775823009d763876a0f093.tar.xz
Bug 1026863: buglist.cgi enters in an infinite loop if called without arguments and the user is logged in
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/CGI.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm
index c003e9295..64da0af28 100644
--- a/Bugzilla/CGI.pm
+++ b/Bugzilla/CGI.pm
@@ -467,6 +467,10 @@ sub remove_cookie {
# URLs that get POSTed to buglist.cgi.
sub redirect_search_url {
my $self = shift;
+
+ # If there is no parameter, there is nothing to do.
+ return unless $self->param;
+
# If we're retreiving an old list, we never need to redirect or
# do anything related to Bugzilla::Search::Recent.
return if $self->param('regetlastlist');