diff options
author | Eric Wong <e@80x24.org> | 2017-01-21 04:41:06 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-01-21 04:41:06 +0000 |
commit | a195b2a2195a27110df055153105743b80746b36 (patch) | |
tree | 62599de9c5c18370924d70cd68705218624fc2da /lib | |
parent | c47247dfdee80a8ad68039df7b95d3e900e31b54 (diff) | |
download | public-inbox-a195b2a2195a27110df055153105743b80746b36.tar.gz |
We must not drop the leading slash in the URI. This regression was introduced when we dropped Plack::Request dependency.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/RepobrowseGitAtom.pm | 1 |
1 files changed, 0 insertions, 1 deletions
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; |