From 1ae108ba0c236efdd7cc52b77c0d4394a1410964 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Thu, 7 Jun 2012 19:30:45 +0000 Subject: [PATCH] Bug 761199: buglist.cgi enters in an infinite loop if called without arguments and the user is logged in r=timello a=LpSolit git-svn-id: svn://10.0.0.236/trunk@263912 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/CGI.pm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index c8d4a918f09..50d9b1bc56a 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -8255 \ No newline at end of file +8256 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/CGI.pm b/mozilla/webtools/bugzilla/Bugzilla/CGI.pm index 879eca9b25b..67a2fbab39a 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/CGI.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/CGI.pm @@ -400,6 +400,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');