summaryrefslogtreecommitdiff
path: root/gitweb
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-10-11 20:31:15 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-10-11 21:42:22 (GMT)
commit34c06118ede69b37b76fcf71564f0f24234c5752 (patch)
treefac8ef8bfac380cef327a9b2adcd6467522227f2 /gitweb
parent45a3b12cfd3eaa05bbb0954790d5be5b8240a7b5 (diff)
downloadgit-34c06118ede69b37b76fcf71564f0f24234c5752.zip
git-34c06118ede69b37b76fcf71564f0f24234c5752.tar.gz
git-34c06118ede69b37b76fcf71564f0f24234c5752.tar.bz2
gitweb: Fix search form when PATH_INFO is enabled
Currently that was broken. Ideal fix would make the search form use PATH_INFO too, but it's just one insignificant place so it's no big deal if we don't for now... This at least makes it work. Signed-off-by: Petr Baudis <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'gitweb')
-rwxr-xr-xgitweb/gitweb.perl4
1 files changed, 4 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 1d5217e..0a7acfd 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -408,6 +408,9 @@ sub href(%) {
my %params = @_;
my $href = $my_uri;
+ # XXX: Warning: If you touch this, check the search form for updating,
+ # too.
+
my @mapping = (
project => "p",
action => "a",
@@ -1442,6 +1445,7 @@ EOF
}
$cgi->param("a", "search");
$cgi->param("h", $search_hash);
+ $cgi->param("p", $project);
print $cgi->startform(-method => "get", -action => $my_uri) .
"<div class=\"search\">\n" .
$cgi->hidden(-name => "p") . "\n" .