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.lorimer.id.au/gitweb.git/diff_plain/7f79b0173d2464a31fcb69ff33df9821172b2219?ds=inline;hp=--cc 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 --- 7f79b0173d2464a31fcb69ff33df9821172b2219 diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7c136ec0d3..17d8efb29c 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -408,13 +408,6 @@ sub check_export_ok { $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;