From 7f79b0173d2464a31fcb69ff33df9821172b2219 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sat, 19 May 2007 01:12:32 +0200 Subject: [PATCH] gitweb: Remove redundant $searchtype setup Sorry, this was inadverently introduced by my grep search patch. It causes annoying "redefined" warnings. Signed-off-by: Petr Baudis Signed-off-by: Junio C Hamano --- gitweb/gitweb.perl | 7 ------- 1 file changed, 7 deletions(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7c136ec0d..17d8efb29 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -408,13 +408,6 @@ if (defined $searchtext) { $search_regexp = quotemeta $searchtext; } -our $searchtype = $cgi->param('st'); -if (defined $searchtype) { - if ($searchtype =~ m/[^a-z]/) { - die_error(undef, "Invalid searchtype parameter"); - } -} - # now read PATH_INFO and use it as alternative to parameters sub evaluate_path_info { return if defined $project; -- 2.30.2