X-Git-Url: https://git.ladys.computer/Gitweb/blobdiff_plain/557808b3bb355ed999267e94c9c0563b42fd7ca2977218a4880f0f672710748d..63a92ba604e2784e0c64043f5ce505231e3efe80431e524bdc0df554969cf040:/gitweb.perl?ds=sidebyside diff --git a/gitweb.perl b/gitweb.perl index 2bb310b..9956e59 100755 --- a/gitweb.perl +++ b/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; @@ -872,7 +876,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)); }