Package: gitweb Version: 1:1.6.5-1 Severity: normal Tags: patch The "project search" form on the front ("project list") page of gitweb defaults to pointing to "http://localhost". This is because the call to $cgi->startform on line 4584 has no "action" parameter. This is fixed by adding the parameter so that it matches the other call to $cgi->startform, on line 3170. (The local $action variable is equal to the global $my_uri variable.)
Patch included. -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.30-2-amd64 (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages gitweb depends on: ii git-core 1:1.6.5-1 fast, scalable, distributed revisi ii perl 5.10.1-8 Larry Wall's Practical Extraction gitweb recommends no packages. Versions of packages gitweb suggests: ii git-doc 1:1.6.5-1 fast, scalable, distributed revisi -- no debconf information
--- gitweb.cgi.old 2009-12-13 23:03:13.000000000 +0000 +++ gitweb.cgi 2009-12-13 23:01:02.000000000 +0000 @@ -4584,7 +4584,7 @@ insert_file($home_text); print "</div>\n"; } - print $cgi->startform(-method => "get") . + print $cgi->startform(-method => "get", -action => $my_uri) . "<p class=\"projsearch\">Search:\n" . $cgi->textfield(-name => "s", -value => $searchtext) . "\n" . "</p>" .