diff options
Diffstat (limited to 'gitweb/gitweb.perl')
| -rwxr-xr-x | gitweb/gitweb.perl | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a9f57d6f90..7a5b23acf2 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -20,6 +20,10 @@ use File::Basename qw(basename);  use Time::HiRes qw(gettimeofday tv_interval);  binmode STDOUT, ':utf8'; +if (!defined($CGI::VERSION) || $CGI::VERSION < 4.08) { +	eval 'sub CGI::multi_param { CGI::param(@_) }' +} +  our $t0 = [ gettimeofday() ];  our $number_of_git_cmds = 0; @@ -871,7 +875,7 @@ sub evaluate_query_params {  	while (my ($name, $symbol) = each %cgi_param_mapping) {  		if ($symbol eq 'opt') { -			$input_params{$name} = [ map { decode_utf8($_) } $cgi->param($symbol) ]; +			$input_params{$name} = [ map { decode_utf8($_) } $cgi->multi_param($symbol) ];  		} else {  			$input_params{$name} = decode_utf8($cgi->param($symbol));  		} @@ -4100,7 +4104,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) .  	      "<div class=\"search\">\n" .  	      (!$use_pathinfo &&  	      $cgi->input({-name=>"p", -value=>$project, -type=>"hidden"}) . "\n") . @@ -5510,7 +5514,7 @@ sub git_project_search_form {  	}  	print "<div class=\"projsearch\">\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); | 
