From 36c89ffaf34c6fe50bd8c49f44163dbb85680a43 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 14 Feb 2017 23:19:34 +0000 Subject: repobrowse: do not unescape PATH_INFO twice PSGI specs already require PATH_INFO to be unescaped. Followup-to: commit 364de65f8a6b5729027cb70228312a141430122f ("www: do not unescape PATH_INFO twice") --- lib/PublicInbox/Repobrowse.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm index 87e12278..c16f10fd 100644 --- a/lib/PublicInbox/Repobrowse.pm +++ b/lib/PublicInbox/Repobrowse.pm @@ -20,7 +20,7 @@ package PublicInbox::Repobrowse; use strict; use warnings; -use URI::Escape qw(uri_escape_utf8 uri_unescape); +use URI::Escape qw(uri_escape_utf8); use PublicInbox::RepoConfig; my %CMD = map { lc($_) => $_ } qw(Log Commit Tree Patch Blob Plain Tag Atom @@ -92,7 +92,7 @@ sub call { # URL syntax: / repo [ / cmd [ / path ] ] # cmd: log | commit | diff | tree | view | blob | snapshot # repo and path (@extra) may both contain '/' - my $path_info = uri_unescape($env->{PATH_INFO}); + my $path_info = $env->{PATH_INFO}; my (undef, $repo_path, @extra) = split(m{/+}, $path_info, -1); return $self->root_index($self) unless length($repo_path); -- cgit v1.2.3-24-ge0c7