Bugzilla – Attachment 122578 Details for
Bug 26760
Redirect to paycollect.pl when clicking on "Save and pay"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26760: Escape URI parameters in redirect URI to paycollect.pl
Bug-26760-Escape-URI-parameters-in-redirect-URI-to.patch (text/plain), 1.77 KB, created by
Katrin Fischer
on 2021-07-03 20:36:40 UTC
(
hide
)
Description:
Bug 26760: Escape URI parameters in redirect URI to paycollect.pl
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2021-07-03 20:36:40 UTC
Size:
1.77 KB
patch
obsolete
>From add25e5e3d412fa034669abf58944ce085f87de7 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Wed, 12 May 2021 10:24:30 +0200 >Subject: [PATCH] Bug 26760: Escape URI parameters in redirect URI to > paycollect.pl > >Also remove useless '%.2f' formatting of amount and amountoutstanding > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > members/maninvoice.pl | 17 ++++++++++------- > 1 file changed, 10 insertions(+), 7 deletions(-) > >diff --git a/members/maninvoice.pl b/members/maninvoice.pl >index 1062f74f83..3cf02ca7c4 100755 >--- a/members/maninvoice.pl >+++ b/members/maninvoice.pl >@@ -24,6 +24,7 @@ > > use Modern::Perl; > use Try::Tiny; >+use URI::Escape; > > use C4::Auth; > use C4::Output; >@@ -172,13 +173,15 @@ if ($add) { > if ( $add eq 'save and pay' ) { > my $url = sprintf( > '/cgi-bin/koha/members/paycollect.pl?borrowernumber=%s&pay_individual=1&debit_type_code=%s&amount=%s&amountoutstanding=%s&description=%s&itemnumber=%s&accountlines_id=%s', >- $borrowernumber, >- $line->debit_type_code, >- sprintf('%.2f', $line->amount), >- sprintf('%.2f', $line->amountoutstanding), >- $line->description, >- $line->itemnumber, >- $line->id >+ map { uri_escape_utf8($_) } ( >+ $borrowernumber, >+ $line->debit_type_code, >+ $line->amount, >+ $line->amountoutstanding, >+ $line->description, >+ $line->itemnumber, >+ $line->id >+ ) > ); > > print $input->redirect($url); >-- >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 26760
:
112093
|
112313
|
112351
|
120856
|
122577
| 122578