Skip to content

Commit 4750f4b

Browse files
Roland Masgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Jakub Narębski <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 76f8611 commit 4750f4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gitweb/gitweb.perl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4100,7 +4100,7 @@ sub print_search_form {
41004100
if ($use_pathinfo) {
41014101
$action .= "/".esc_url($project);
41024102
}
4103-
print $cgi->startform(-method => "get", -action => $action) .
4103+
print $cgi->start_form(-method => "get", -action => $action) .
41044104
"<div class=\"search\">\n" .
41054105
(!$use_pathinfo &&
41064106
$cgi->input({-name=>"p", -value=>$project, -type=>"hidden"}) . "\n") .
@@ -5510,7 +5510,7 @@ sub git_project_search_form {
55105510
}
55115511

55125512
print "<div class=\"projsearch\">\n";
5513-
print $cgi->startform(-method => 'get', -action => $my_uri) .
5513+
print $cgi->start_form(-method => 'get', -action => $my_uri) .
55145514
$cgi->hidden(-name => 'a', -value => 'project_list') . "\n";
55155515
print $cgi->hidden(-name => 'pf', -value => $project_filter). "\n"
55165516
if (defined $project_filter);

0 commit comments

Comments
 (0)