@matheusbsbs / matheus-bagliano / commits / df63fbbf46
Fork 0

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 <giuseppe.bilotta@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Giuseppe Bilotta committed Jan 2, 2009 at 13:15 UTC df63fbbf46c5ec855132f4c631c32b45f67b42e4
1 file changed +2 -2
gitweb/gitweb.perl
+2 -2
@@ -6146,8 +6146,8 @@ XML
6146 }
6147
6148 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);
6151 print "<outline type=\"rss\" text=\"$path\" title=\"$path\" xmlUrl=\"$rss\" htmlUrl=\"$html\"/>\n";
6152 }
6153 print <<XML;