From: Petr Baudis Date: Wed, 11 Oct 2006 20:31:15 +0000 (+0200) Subject: gitweb: Fix search form when PATH_INFO is enabled X-Git-Tag: v1.4.4-rc1~83^2 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/34c06118ede69b37b76fcf71564f0f24234c5752?ds=inline;hp=--cc 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 Signed-off-by: Junio C Hamano --- 34c06118ede69b37b76fcf71564f0f24234c5752 diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 1d5217e334..0a7acfd493 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -408,6 +408,9 @@ (%) 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 @@ sub git_header_html { } $cgi->param("a", "search"); $cgi->param("h", $search_hash); + $cgi->param("p", $project); print $cgi->startform(-method => "get", -action => $my_uri) . "
\n" . $cgi->hidden(-name => "p") . "\n" .