]> 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>
Sun, 2 Sep 2007 23:42:05 +0000 (23:42 +0000)
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

index 64790c137041b743f387bdd4ab4a46ad9100b64c..3c0694ab14f40e498ebf9f113fd803b19d81bb18 100755 (executable)
@@ -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;