]> git.deb.at Git - deb/packages.git/blobdiff - cgi-bin/dispatcher.pl
Clean-up behind Jeroen :)
[deb/packages.git] / cgi-bin / dispatcher.pl
index 99c547998e54ac98405383c8ec4190e62665fd63..e863de91b172aa0ff94823e9fc4d0218b4e9f71f 100755 (executable)
@@ -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+)$',  },