From 49bd9bae3e0ac6ab0488f25e75d4eea416676e58 Mon Sep 17 00:00:00 2001 From: Amit Gupta Date: Wed, 22 Jan 2020 21:37:22 +0530 Subject: [PATCH] Bug 22990: Add CSRF protection to boraccount, pay and suggestion Signed-off-by: David Cook Signed-off-by: Marcel de Rooy Test plan would have been nioe. Tested by changing MAX_AGE with suggestions. Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 833d1dc8b082cc742b88e358edef77960b5ffc2f) Signed-off-by: Fridolin Somers --- .../prog/en/modules/members/boraccount.tt | 11 +++++++---- .../intranet-tmpl/prog/en/modules/members/pay.tt | 1 + .../prog/en/modules/suggestion/suggestion.tt | 5 +++++ members/boraccount.pl | 15 ++++++++++----- members/pay.pl | 8 ++++++++ suggestion/suggestion.pl | 9 ++++++--- 6 files changed, 37 insertions(+), 12 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt index 5404672138..53c8cfd848 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -55,7 +55,7 @@ [% INCLUDE 'members-toolbar.inc' %]

Account for [% INCLUDE 'patron-title.inc' %]

-
+
[% INCLUDE 'csrf-token.inc' %]
@@ -147,14 +147,14 @@ [% END %] Details [% IF account.is_debit && account.amountoutstanding > 0 %] - Pay + Pay [% END %] [% IF account.is_credit && account.status != 'VOID' %] - Void payment + Void payment [% END %] [% IF account.is_debit && account.amount == account.amountoutstanding && account.status != 'CANCELLED' && !(account.debit_type_code == 'PAYOUT') %]
- + [% INCLUDE 'csrf-token.inc' %]