git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] gitweb: Remove redundant $searchtype setup

From
Petr Baudis <pasky@suse.cz>
Date
May 18, 2007, 23:12 UTC
Message-ID
<20070518231232.32429.37727.stgit@rover>

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;
Message 1 of 1 in “gitweb: Remove redundant $searchtype setup”
  1. gitweb: Remove redundant $searchtype setupPetr Baudis, May 18, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.