Skip to content

Commit

Permalink
gitweb: Remove redundant $searchtype setup
Browse files Browse the repository at this point in the history
Sorry, this was inadverently introduced by my grep search patch. It causes
annoying "redefined" warnings.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed May 19, 2007
1 parent 760f0c6 commit 7f79b01
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f79b01

Please sign in to comment.