X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=cgi-bin%2Fsearch_contents.pl;h=839ffc00f0ad830ab43125f6ff738cefaa942c0c;hb=bbe90f9136f133811370f0d3c58a96c7ee2dc795;hp=21aaeabb1eadf267888802b9bc0e7493ccaaf52a;hpb=3d5a2408c84b3197cfb003ef2c3204d9c280b481;p=deb%2Fpackages.git diff --git a/cgi-bin/search_contents.pl b/cgi-bin/search_contents.pl index 21aaeab..839ffc0 100755 --- a/cgi-bin/search_contents.pl +++ b/cgi-bin/search_contents.pl @@ -19,6 +19,11 @@ sub contents() { # only thing implemented yet: ends-with search my $kw = lc $cgi->param("keywords"); $kw = reverse $kw; + + # exact filename searching follows trivially: + my $exact = $cgi->param("exact"); + $kw = "/$kw" if $exact; + # FIXME: ensure $suite is sanitized my $suite = 'stable';