X-Git-Url: https://git.deb.at/?p=deb%2Fpackages.git;a=blobdiff_plain;f=cgi-bin%2Fdispatcher.pl;h=e863de91b172aa0ff94823e9fc4d0218b4e9f71f;hp=99c547998e54ac98405383c8ec4190e62665fd63;hb=a3e6aa1e34000d0a7faa1773bd6bc32c32cfa625;hpb=e23d2d2080a904ddd6d989a878f3c9b164f0a075 diff --git a/cgi-bin/dispatcher.pl b/cgi-bin/dispatcher.pl index 99c5479..e863de9 100755 --- a/cgi-bin/dispatcher.pl +++ b/cgi-bin/dispatcher.pl @@ -67,7 +67,7 @@ my $http_lang = $acc->accepts( $input->http("Accept-Language"), \@LANGUAGES ); debug( "LANGUAGES=@LANGUAGES header=". $input->http("Accept-Language"). - " http_lang=$http_lang", 2 ); + " http_lang=$http_lang", 2 ) if DEBUG; bindtextdomain ( 'pdo', $LOCALES ); textdomain( 'pdo' ); @@ -83,7 +83,7 @@ if (my $path = $input->path_info() || $input->param('PATH_INFO')) { shift @components; $input->param( 'source', 1 ); } - if (@components > 1 and $components[0] eq 'search') { + if (@components > 0 and $components[0] eq 'search') { shift @components; $what_to_do = 'search'; # Done @@ -171,7 +171,7 @@ my %params_def = ( keywords => { default => undef, match => '^([\w-]+)$', array => ',', var => \@archives, replace => { all => \@ARCHIVES, - default => [qw(us security non-US)]} }, + default => \@ARCHIVES} }, exact => { default => 0, match => '^(\w+)$', }, lang => { default => $http_lang, match => '^(\w+)$', }, source => { default => 0, match => '^(\d+)$', },