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>
Petr Baudis committed
Oct 11, 2006 at 22:31 UTC
34c06118ede69b37b76fcf71564f0f24234c5752
1 file changed
+4
gitweb/gitweb.perl
+4
@@ -408,6 +408,9 @@ sub href(%) {
408
my %params = @_;
409
my $href = $my_uri;
410
411
+ # XXX: Warning: If you touch this, check the search form for updating,
412
+ # too.
413
+
414
my @mapping = (
415
project => "p",
416
action => "a",
@@ -1442,6 +1445,7 @@ EOF
1445
}
1446
$cgi->param("a", "search");
1447
$cgi->param("h", $search_hash);
1448
+ $cgi->param("p", $project);
1449
print $cgi->startform(-method => "get", -action => $my_uri) .
1450
"<div class=\"search\">\n" .
1451
$cgi->hidden(-name => "p") . "\n" .