From a195b2a2195a27110df055153105743b80746b36 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 21 Jan 2017 04:41:06 +0000 Subject: repobrowse: fix full URL generation in Atom feed We must not drop the leading slash in the URI. This regression was introduced when we dropped Plack::Request dependency. --- lib/PublicInbox/RepobrowseGitAtom.pm | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/RepobrowseGitAtom.pm b/lib/PublicInbox/RepobrowseGitAtom.pm index f851ee36..c542281c 100644 --- a/lib/PublicInbox/RepobrowseGitAtom.pm +++ b/lib/PublicInbox/RepobrowseGitAtom.pm @@ -22,7 +22,6 @@ sub repo_root_url { my $uri = $env->{REQUEST_URI}; $uri =~ s/\?.+\z//; # no query string my @uri = split(m!/+!, $uri); - shift @uri; # leading slash my @extra = @{$req->{extra}}; while (@uri && @extra && $uri[-1] eq $extra[-1]) { pop @uri; -- cgit v1.2.3-24-ge0c7