From: Giuseppe Bilotta Date: Fri, 2 Jan 2009 12:15:28 +0000 (+0100) Subject: gitweb: use href() when generating URLs in OPML X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/3e8ff3f55dc60149d990cfed0e05027e9ae739fe7f0cbe95b03aaa308ce94cfa 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 Acked-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 41f3af7..96f4e9c 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -6247,8 +6247,8 @@ XML } my $path = esc_html(chop_str($proj{'path'}, 25, 5)); - my $rss = "$my_url?p=$proj{'path'};a=rss"; - my $html = "$my_url?p=$proj{'path'};a=summary"; + my $rss = href('project' => $proj{'path'}, 'action' => 'rss', -full => 1); + my $html = href('project' => $proj{'path'}, 'action' => 'summary', -full => 1); print "\n"; } print <