gitweb: use start_form, not startform that was removed in CGI.pm 4.04
CGI.pm 4.04 removed the startform method, which had previously been deprecated in favour of start_form. Changes file for CGI.pm says: 4.04 2014-09-04 [ REMOVED / DEPRECATIONS ] - startform and endform methods removed (previously deprecated, you should be using the start_form and end_form methods) Signed-off-by: Roland Mas <lolando@debian.org> Reviewed-by: Jakub Narębski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Roland Mas committed
Oct 16, 2014 at 08:54 UTC
4750f4b962b4f09b03fcdde86684cf60c6f6e46a
1 file changed
+2
-2
gitweb/gitweb.perl
+2
-2
@@ -4100,7 +4100,7 @@ sub print_search_form {
4100
if ($use_pathinfo) {
4101
$action .= "/".esc_url($project);
4102
}
4103
- print $cgi->startform(-method => "get", -action => $action) .
4103
+ print $cgi->start_form(-method => "get", -action => $action) .
4104
"<div class=\"search\">\n" .
4105
(!$use_pathinfo &&
4106
$cgi->input({-name=>"p", -value=>$project, -type=>"hidden"}) . "\n") .
@@ -5510,7 +5510,7 @@ sub git_project_search_form {
5510
}
5511
5512
print "<div class=\"projsearch\">\n";
5513
- print $cgi->startform(-method => 'get', -action => $my_uri) .
5513
+ print $cgi->start_form(-method => 'get', -action => $my_uri) .
5514
$cgi->hidden(-name => 'a', -value => 'project_list') . "\n";
5515
print $cgi->hidden(-name => 'pf', -value => $project_filter). "\n"
5516
if (defined $project_filter);