From: Roland Mas Date: Thu, 16 Oct 2014 06:54:47 +0000 (+0200) Subject: gitweb: use start_form, not startform that was removed in CGI.pm 4.04 X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/557808b3bb355ed999267e94c9c0563b42fd7ca2977218a4880f0f672710748d?hp=c97bf86085e0f7590fb94725c71c56254a7d09dd98f8a891c99365cbfa1cb3bb 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 Reviewed-by: Jakub Narębski Signed-off-by: Junio C Hamano --- diff --git a/gitweb.perl b/gitweb.perl index 1fe25a5..2bb310b 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -4101,7 +4101,7 @@ sub print_search_form { if ($use_pathinfo) { $action .= "/".esc_url($project); } - print $cgi->startform(-method => "get", -action => $action) . + print $cgi->start_form(-method => "get", -action => $action) . "
\n" . (!$use_pathinfo && $cgi->input({-name=>"p", -value=>$project, -type=>"hidden"}) . "\n") . @@ -5511,7 +5511,7 @@ sub git_project_search_form { } print "
\n"; - print $cgi->startform(-method => 'get', -action => $my_uri) . + print $cgi->start_form(-method => 'get', -action => $my_uri) . $cgi->hidden(-name => 'a', -value => 'project_list') . "\n"; print $cgi->hidden(-name => 'pf', -value => $project_filter). "\n" if (defined $project_filter);