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=834d6a08dbcc3b30f2e8f453f5ac6870f48d8fcb;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 --- diff --git a/lib/Packages/Dispatcher.pm b/lib/Packages/Dispatcher.pm index 64790c1..3c0694a 100755 --- a/lib/Packages/Dispatcher.pm +++ b/lib/Packages/Dispatcher.pm @@ -138,7 +138,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;