Bugzilla – Attachment 51985 Details for
Bug 16645
Plack: Add the multi_param fix from Context in koha.psgi
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16645: Plack: Add the multi_param fix from Context in koha.psgi
Bug-16645-Plack-Add-the-multiparam-fix-from-Contex.patch (text/plain), 1.11 KB, created by
Marcel de Rooy
on 2016-06-03 10:43:51 UTC
(
hide
)
Description:
Bug 16645: Plack: Add the multi_param fix from Context in koha.psgi
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2016-06-03 10:43:51 UTC
Size:
1.11 KB
patch
obsolete
>From 730ef8b8c2a0b2a9f1b7e9513ca872630eb77d9c Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >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 | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/misc/plack/koha.psgi b/misc/plack/koha.psgi >index 5ffc7fb..f502167 100644 >--- a/misc/plack/koha.psgi >+++ b/misc/plack/koha.psgi >@@ -15,6 +15,12 @@ use CGI qw(-utf8 ); # we will lose -utf8 under plack > Koha::Cache->flush_L1_cache(); > return $q; > }; >+ if (!defined($CGI::VERSION) || $CGI::VERSION < 4.08) { >+ no warnings 'redefine'; >+ *CGI::multi_param = \&CGI::param; >+ use warnings 'redefine'; >+ $CGI::LIST_CONTEXT_WARN = 0; >+ } > } > > BEGIN { >-- >1.7.10.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16645
:
51985
|
53161