From 1f6220047e22d7a6366e7dce774c100fd783e2ff 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. Bug 22990: Fix for shelves table Signed-off-by: David Cook Signed-off-by: Marcel de Rooy Bug 22990: Fix template toolkit syntax issues in shelves_results.tt Signed-off-by: Marcel de Rooy Bug 22990: (follow-up) Fix suggestion.pl Signed-off-by: Tomas Cohen Arazi (cherry picked from commit e7e5a54dc897a3fa08722ce268862ff2aecae23e) Signed-off-by: danyonsewell --- .../prog/en/modules/members/boraccount.tt | 12 ++++++++---- .../intranet-tmpl/prog/en/modules/members/pay.tt | 1 + .../prog/en/modules/suggestion/suggestion.tt | 6 +++++- .../prog/en/modules/virtualshelves/shelves.tt | 4 +++- .../virtualshelves/tables/shelves_results.tt | 3 +++ members/boraccount.pl | 15 ++++++++++----- members/pay.pl | 8 ++++++++ suggestion/suggestion.pl | 10 +++++++--- virtualshelves/shelves.pl | 8 +++++++- 9 files changed, 52 insertions(+), 15 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 26b1f45101..728d232dcb 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,8 @@
[% INCLUDE 'members-toolbar.inc' %] -
+

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

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