]> git.deb.at Git - deb/packages.git/blobdiff - lib/Packages/Dispatcher.pm
Packages::Dispatcher: Work around breakage in etch's CGI.pm
[deb/packages.git] / 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;