From: Jeroen van Wolffelaar Date: Tue, 14 Feb 2006 00:33:15 +0000 (+0000) Subject: Implement exact filename searching X-Git-Tag: switch-to-templates~133 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=fbb483f75d3a0cd3ffc214eea6fa724d20952b3a;p=deb%2Fpackages.git Implement exact filename searching --- 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';