From e7e5a54dc897a3fa08722ce268862ff2aecae23e 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 --- .../prog/en/modules/members/boraccount.tt | 11 +++++++---- .../intranet-tmpl/prog/en/modules/members/pay.tt | 1 + .../prog/en/modules/suggestion/suggestion.tt | 15 +++++++++------ .../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, 55 insertions(+), 20 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 aa12bb985a..7480384ae0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -45,7 +45,7 @@ [% INCLUDE 'members-toolbar.inc' %]

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

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