X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=lib%2FPackages%2FDoSearch.pm;h=bc55b747ec41b5091a12ae7f4712bde83d4fb50a;hb=81a4fde2110a6dcc82e8c6c938dc56fdb53fe6e2;hp=d8aa6d8194dbe97ffccffefaf83395052058db12;hpb=47c93cb066364b11f0b216589ddc68671435b060;p=deb%2Fpackages.git diff --git a/lib/Packages/DoSearch.pm b/lib/Packages/DoSearch.pm index d8aa6d8..bc55b74 100644 --- a/lib/Packages/DoSearch.pm +++ b/lib/Packages/DoSearch.pm @@ -15,6 +15,7 @@ use Deb::Versions; use Packages::Search qw( :all ); use Packages::CGI; use Packages::DB; +use Packages::HTML qw(marker); use Packages::Config qw( $DBDIR $SEARCH_URL $SEARCH_PAGE @SUITES @ARCHIVES $ROOT ); @@ -39,7 +40,7 @@ sub do_search { my $suites_param = join ',', @{$params->{values}{suite}{no_replace}}; my $sections_param = join ',', @{$params->{values}{section}{no_replace}}; my $archs_param = join ',', @{$params->{values}{arch}{no_replace}}; - $opts->{common_params} = "suite=$suites_param;section=$sections_param;keywords=$keyword_esc;searchon=$searchon;arch=$archs_param"; + $opts->{common_params} = "suite=$suites_param§ion=$sections_param&keywords=$keyword_esc&searchon=$searchon&arch=$archs_param"; # for output my $keyword_enc = encode_entities $keyword || ''; @@ -126,7 +127,10 @@ sub do_search { if ($opts->{exact}) { $printed++; - hint( "You have searched only for words exactly matching your keywords. You can try to search {common_params}\">allowing subword matching." ); + hint( "You have searched only for words exactly matching your + keywords. You can try to search {common_params}")."\">allowing + subword matching." ); } } hint( ( $printed ? "Or you" : "You" )." can try a different search on the Packages search page." ); @@ -246,7 +250,7 @@ sub print_packages { map { $_->{$pkg}||{} } @func_args ); } } elsif (@$pkgs_list) { - $str .= "

{common_params}\">". + $str .= "

{common_params}")."\">". ($#{$pkgs_list}+1)." results have not been displayed because you requested only exact matches.

"; } $str .= '';