From e21fe28a63572c2760cac1526a5cbc365df94a0c 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 (cherry picked from commit 834d6a08dbcc3b30f2e8f453f5ac6870f48d8fcb) --- 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 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; -- 2.39.2