From: Petr Baudis Date: Fri, 18 May 2007 23:12:32 +0000 (+0200) Subject: gitweb: Remove redundant $searchtype setup X-Git-Tag: v1.5.2~9 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f79b0173d2464a31fcb69ff33df9821172b2219;p=git.git 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 --- 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;