Skip to content

Commit

Permalink
gitweb: Fix search form when PATH_INFO is enabled
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Petr Baudis authored and Junio C Hamano committed Oct 11, 2006
1 parent 45a3b12 commit 34c0611
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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) .
"<div class=\"search\">\n" .
$cgi->hidden(-name => "p") . "\n" .
Expand Down

0 comments on commit 34c0611

Please sign in to comment.