]> asedeno.scripts.mit.edu Git - git.git/blobdiff - gitweb/gitweb.perl
gitweb: Fix search form when PATH_INFO is enabled
[git.git] / gitweb / gitweb.perl
index 1d5217e334ee7da3ec8ef82eeda5a0ffcde40e9e..0a7acfd4936c39d4b09a24412c800be4ca073bb1 100755 (executable)
@@ -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" .