]> git.deb.at Git - deb/packages.git/commitdiff
Merge commit 'origin/master' into debian-master
authorFrank Lichtenheld <frank@lichtenheld.de>
Mon, 3 Sep 2007 23:56:07 +0000 (23:56 +0000)
committerFrank Lichtenheld <frank@lichtenheld.de>
Mon, 3 Sep 2007 23:56:07 +0000 (23:56 +0000)
1  2 
lib/Packages/Dispatcher.pm

index 3c0694ab14f40e498ebf9f113fd803b19d81bb18,4c3c31fc8beabf44c9c055a2be5eec9502968475..9639e92deff877d4f344385e1d1b81a4ee295977
@@@ -138,7 -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;
                                 array => ',', var => \@archs, replace =>
                                 { any => \@ARCHITECTURES } },
                       format => { default => 'html', match => '^([\w.]+)$',  },
-                  mode => { default => undef, match => '^(\w+)$',  },
+                  mode => { default => '', match => '^(\w+)$',  },
                   sort_by => { default => 'file', match => '^(\w+)$', },
                   );
      my %opts;