Git development
 help / color / mirror / Atom feed
* [PATCH] gitweb: Remove redundant $searchtype setup
@ 2007-05-18 23:12 Petr Baudis
  0 siblings, 0 replies; only message in thread
From: Petr Baudis @ 2007-05-18 23:12 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

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(-)

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;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-18 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 23:12 [PATCH] gitweb: Remove redundant $searchtype setup Petr Baudis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox