Bugzilla – Attachment 84531 Details for
Bug 20582
Turn Koha into a Mojolicious application
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20582: Handle multipart content-type
Bug-20582-Handle-multipart-content-type.patch (text/plain), 1.06 KB, created by
Josef Moravec
on 2019-01-30 14:46:46 UTC
(
hide
)
Description:
Bug 20582: Handle multipart content-type
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-01-30 14:46:46 UTC
Size:
1.06 KB
patch
obsolete
>From 5f47b4e34b1610408a2c1ddcc57390c04baed6f8 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 31 Oct 2018 10:44:12 +0100 >Subject: [PATCH] Bug 20582: Handle multipart content-type >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Mojo::Message::Request's body attribute does not contain anything when >the content-type is multipart/* >We have to rebuild the multipart body for CGI scripts > >Test plan: >1. Go to Tools » Upload and try to upload a file > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/App/Plugin/CGIBinKoha.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/App/Plugin/CGIBinKoha.pm b/Koha/App/Plugin/CGIBinKoha.pm >index 05e89457c2..19f9fac9c2 100644 >--- a/Koha/App/Plugin/CGIBinKoha.pm >+++ b/Koha/App/Plugin/CGIBinKoha.pm >@@ -56,7 +56,7 @@ sub _psgi_env { > > my $env = $c->req->env; > >- my $body = $c->req->body; >+ my $body = $c->req->build_body; > $env = { > %$env, > 'psgi.input' => IO::Scalar->new(\$body), >-- >2.11.0
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 20582
:
74173
|
74517
|
74518
|
74519
|
74520
|
79648
|
81687
|
81857
|
82423
|
84526
|
84527
|
84528
|
84529
|
84530
|
84531
|
91009
|
99267
|
103633
|
103720
|
103721
|
109282
|
109283
|
109284
|
109895
|
109896
|
109897
|
109898
|
109899
|
109900
|
111282
|
111315
|
111374