]> git.deb.at Git - deb/packages.git/commitdiff
Packages::Dispatcher: Work around breakage in etch's CGI.pm
authorFrank Lichtenheld <frank@lichtenheld.de>
Sun, 2 Sep 2007 23:42:05 +0000 (23:42 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Sat, 17 Nov 2007 20:45:54 +0000 (21:45 +0100)
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

index 4da8c568455a3f7b2b4ec058369af4a968c93186..86be87cbca0b7001235d7429f86013d3c306f22b 100755 (executable)
@@ -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;