From fbb483f75d3a0cd3ffc214eea6fa724d20952b3a Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Tue, 14 Feb 2006 00:33:15 +0000 Subject: [PATCH] Implement exact filename searching --- cgi-bin/search_contents.pl | 5 +++++ 1 file changed, 5 insertions(+) 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'; -- 2.39.2