From: Frank Lichtenheld Date: Sun, 2 Sep 2007 23:42:05 +0000 (+0000) Subject: Packages::Dispatcher: Work around breakage in etch's CGI.pm X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=e21fe28a63572c2760cac1526a5cbc365df94a0c;p=deb%2Fpackages.git Packages::Dispatcher: Work around breakage in etch's CGI.pm path_info() is broken for paths that contain '+' Use $ENV{PATH_INFO} since for apache on Debian this should be mostly the same (cherry picked from commit 834d6a08dbcc3b30f2e8f453f5ac6870f48d8fcb) --- diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index 4da8c56..86be87c 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -139,7 +139,7 @@ sub do_dispatch { my $what_to_do = 'show'; my $source = 0; - if (my $path = $input->path_info() || $input->param('PATH_INFO')) { + if (my $path = $ENV{'PATH_INFO'} || $input->param('PATH_INFO')) { my @components = grep { $_ } map { lc $_ } split /\/+/, $path; debug( "PATH_INFO=$path components=@components", 3) if DEBUG;