]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 761199: buglist.cgi enters in an infinite loop if called without arguments and...
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 7 Jun 2012 19:19:32 +0000 (21:19 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 7 Jun 2012 19:19:32 +0000 (21:19 +0200)
r=timello a=LpSolit

Bugzilla/CGI.pm

index 879eca9b25b32a0bbb37b40d97ca3fc6b3a260fb..67a2fbab39a9043e4778dee5d0e1f86990b59e21 100644 (file)
@@ -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');