Skip to content

Commit 56efd9d

Browse files
Bernhard R. Linkgitster
authored andcommitted
gitweb: limit links to alternate forms of project_list to active project_filter
If project_list action is given a project_filter argument, pass that to TXT and OPML formats. This way [OPML] and [TXT] links provide the same list of projects as the projects_list page they are linked from. Signed-off-by: Bernhard R. Link <[email protected]> Acked-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 19d2d23 commit 56efd9d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gitweb/gitweb.perl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3979,9 +3979,11 @@ sub git_footer_html {
39793979
}
39803980

39813981
} else {
3982-
print $cgi->a({-href => href(project=>undef, action=>"opml"),
3982+
print $cgi->a({-href => href(project=>undef, action=>"opml",
3983+
project_filter => $project_filter),
39833984
-class => $feed_class}, "OPML") . " ";
3984-
print $cgi->a({-href => href(project=>undef, action=>"project_index"),
3985+
print $cgi->a({-href => href(project=>undef, action=>"project_index",
3986+
project_filter => $project_filter),
39853987
-class => $feed_class}, "TXT") . "\n";
39863988
}
39873989
print "</div>\n"; # class="page_footer"

0 commit comments

Comments
 (0)