Skip to content

Commit df63fbb

Browse files
Oblomovgitster
authored andcommitted
gitweb: use href() when generating URLs in OPML
Since the OPML project list view was hand-coding the RSS and HTML URLs, it didn't respect global options such as use_pathinfo. Make it use href() to ensure consistency with the rest of the gitweb setup. Signed-off-by: Giuseppe Bilotta <[email protected]> Acked-by: Jakub Narebski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8ea6ae9 commit df63fbb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6146,8 +6146,8 @@ sub git_opml {
61466146
}
61476147

61486148
my $path = esc_html(chop_str($proj{'path'}, 25, 5));
6149-
my $rss = "$my_url?p=$proj{'path'};a=rss";
6150-
my $html = "$my_url?p=$proj{'path'};a=summary";
6149+
my $rss = href('project' => $proj{'path'}, 'action' => 'rss', -full => 1);
6150+
my $html = href('project' => $proj{'path'}, 'action' => 'summary', -full => 1);
61516151
print "<outline type=\"rss\" text=\"$path\" title=\"$path\" xmlUrl=\"$rss\" htmlUrl=\"$html\"/>\n";
61526152
}
61536153
print <<XML;

0 commit comments

Comments
 (0)