X-Git-Url: https://git.deb.at/w?a=blobdiff_plain;f=cgi-bin%2Fdispatcher.pl;h=04d5acb74273f5aabc30a916d9cce450a8f84558;hb=fa9e1fd3cdaacb0cf72e559fde02ae83812bff0b;hp=6235cc5e39854b6b746d09100700d5dca287e6d4;hpb=67c4e1e424e081fa0cd77c97ce7a9d82053f6bb5;p=deb%2Fpackages.git diff --git a/cgi-bin/dispatcher.pl b/cgi-bin/dispatcher.pl index 6235cc5..04d5acb 100755 --- a/cgi-bin/dispatcher.pl +++ b/cgi-bin/dispatcher.pl @@ -77,7 +77,7 @@ my $source = 0; if (my $path = $input->path_info() || $input->param('PATH_INFO')) { my @components = grep { $_ } map { lc $_ } split /\/+/, $path; - push @components, 'index' if $path =~ m,/$,; + push @components, 'index' if @components && $path =~ m,/$,; my %LANGUAGES = map { $_ => 1 } @LANGUAGES; if (@components > 0 and $LANGUAGES{$components[0]}) { @@ -167,7 +167,8 @@ if (my $path = $input->path_info() || $input->param('PATH_INFO')) { my ( $pkg, @suites, @sections, @subsections, @archives, @archs ); my %params_def = ( keywords => { default => undef, - match => '^\s*([-+\@\s\w\/.:]+)\s*$', + array => '\s+', + match => '^([-+\@\w\/.:]+)$', }, package => { default => undef, match => '^([\w.+-]+)$', @@ -280,7 +281,6 @@ print "Total page evaluation took ".timestr($tetd)."
" if DEBUG; my $trailer = Packages::HTML::trailer( $ROOT ); -$trailer =~ s/LAST_MODIFIED_DATE/gmtime()/e; #FIXME print $trailer; # vim: ts=8 sw=4