From bfe712f2c7ac611e034cb8683630e3bfb22d070f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 3 Jun 2016 12:34:34 +0200 Subject: [PATCH] Bug 16645: Plack: Add the multi_param fix from Context in koha.psgi Content-Type: text/plain; charset=utf-8 When you are running koha.psgi (under Wheezy with an older CGI), you will crash on multi_param calls (e.g. when searching in opac). This patch simply copies the fix from Context to koha.psgi. Test plan: Run Plack with koha.psgi and test searching in opac. --- misc/plack/koha.psgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi index 20c6ca8..2d9bd74 100644 --- a/misc/plack/koha.psgi +++ b/misc/plack/koha.psgi @@ -16,6 +16,11 @@ use CGI qw(-utf8 ); # we will lose -utf8 under plack Koha::Cache::Memory::Lite->flush(); return $q; }; + if (!defined($CGI::VERSION) || $CGI::VERSION < 4.08) { + *CGI::multi_param = \&CGI::param; + $CGI::LIST_CONTEXT_WARN = 0; + } + use warnings 'redefine'; } BEGIN { -- 1.7.10.4