From 834d6a08dbcc3b30f2e8f453f5ac6870f48d8fcb Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Sun, 2 Sep 2007 23:42:05 +0000 Subject: [PATCH] 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 --- lib/Packages/Dispatcher.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2