From e311550db2760500bc10ae3e077c99d5eba3e847 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 Koha pages --- .../prog/en/modules/members/boraccount.tt | 6 ++++-- .../intranet-tmpl/prog/en/modules/members/pay.tt | 1 + .../prog/en/modules/suggestion/suggestion.tt | 7 +++++-- members/boraccount.pl | 15 ++++++++++----- members/pay.pl | 7 +++++++ members/setstatus.pl | 1 + suggestion/suggestion.pl | 7 +++++-- 7 files changed, 33 insertions(+), 11 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 fd4484aeaa..ebe2aae766 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt @@ -111,10 +111,10 @@ [% 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') %]
@@ -176,6 +176,7 @@ + [% INCLUDE 'csrf-token.inc' %]