From 416604e1e6e23e6cb495cb8db03974dccf41665b 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 (cherry picked from commit 0c365b52f474e0fc0dd439f11bfa0a95534db029) Signed-off-by: Matt Blenkinsop --- .../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 d1d77d1b83..8e07204409 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -44,7 +44,7 @@ [% INCLUDE 'members-toolbar.inc' %]

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

-
+
[% INCLUDE 'csrf-token.inc' %]
@@ -124,14 +124,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' %]