]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: use href() when generating URLs in OPML
[Gitweb] / gitweb.perl
index 41f3af74faf7c303ab11455eb4b34ff357d34ccd54c9a72f1b06fb175e5c07d0..96f4e9c630b535da9f174341faa41b8284c80798102124895a8348681350f67b 100755 (executable)
@@ -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 "<outline type=\"rss\" text=\"$path\" title=\"$path\" xmlUrl=\"$rss\" htmlUrl=\"$html\"/>\n";
        }
        print <<XML;
This page took 0.230644 seconds and 4 git commands to generate.