threads / patch / 8210

patchgitweb: Remove redundant $searchtype setup

Subject: [PATCH] gitweb: Remove redundant $searchtype setup

## tl;dr

One message between May 18, 2007 and May 18, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Petr Baudis· May 18, 2007, 23:12 UTC · lore

Sorry, this was inadverently introduced by my grep search patch. It causes annoying "redefined" warnings.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---
 gitweb/gitweb.perl |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
Show changes to gitweb/gitweb.perl +0 −7
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index ac78a10..0143183 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -413,13 +413,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;

← back to recent threads