From 0342f7d366ebeb0a859ac2aa2eb8a7cecb0858f2 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Thu, 12 Dec 2024 18:32:11 +0000 Subject: [PATCH] Add csrf-token to post forms --- .../RoomReservations/bookas.tt | 6 ++++ .../RoomReservations/configure.tt | 31 +++++++++++++++++++ .../RoomReservations/opac/calendar.tt | 7 +++++ .../RoomReservations/tool.tt | 6 ++++ 4 files changed, 50 insertions(+) diff --git a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/bookas.tt b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/bookas.tt index 50c0b09..923aa99 100644 --- a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/bookas.tt +++ b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/bookas.tt @@ -62,6 +62,7 @@ }
+ [% INCLUDE 'csrf-token.inc' %] @@ -257,6 +258,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -297,6 +299,7 @@ [% ELSE %]

[% 'No rooms match your criteria!' | gettext %]

+ [% INCLUDE 'csrf-token.inc' %] @@ -304,6 +307,7 @@
[% ELSIF op == 'room-selection-confirmation' %]
+ [% INCLUDE 'csrf-token.inc' %] @@ -348,6 +352,7 @@ + [% INCLUDE 'csrf-token.inc' %] @@ -360,6 +365,7 @@

[% 'An email confirmation has been sent to' | gettext %] [% patron_email %]!

[% END %] + [% INCLUDE 'csrf-token.inc' %] diff --git a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/configure.tt b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/configure.tt index 1b4bc6d..4867fe8 100644 --- a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/configure.tt +++ b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/configure.tt @@ -82,6 +82,7 @@ [% IF op == '' %] + [% INCLUDE 'csrf-token.inc' %] @@ -120,6 +121,7 @@ }; + [% INCLUDE 'csrf-token.inc' %] @@ -152,6 +154,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -160,6 +163,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -198,6 +202,7 @@ [% IF op == 'display-rooms-detail' %] + [% INCLUDE 'csrf-token.inc' %] @@ -206,6 +211,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -243,6 +249,7 @@ [% IF op == 'max-future-date' %] + [% INCLUDE 'csrf-token.inc' %] @@ -268,6 +275,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -306,6 +314,7 @@ [% IF op == 'max-time' %] + [% INCLUDE 'csrf-token.inc' %] @@ -326,6 +335,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -400,6 +410,7 @@ [% IF op == 'restrict-daily-reservations-per-patron' %] + [% INCLUDE 'csrf-token.inc' %] @@ -420,6 +431,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -483,6 +495,7 @@ [% IF op == 'restrict-categories' %] + [% INCLUDE 'csrf-token.inc' %] @@ -503,6 +516,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -596,6 +610,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -621,6 +636,7 @@ + [% INCLUDE 'csrf-token.inc' %] @@ -681,6 +697,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -689,6 +706,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -736,6 +754,7 @@ }; + [% INCLUDE 'csrf-token.inc' %] @@ -766,6 +785,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -774,6 +794,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -783,6 +804,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -832,6 +854,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -840,6 +863,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -849,6 +873,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -919,6 +944,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -927,6 +953,7 @@

+ [% INCLUDE 'csrf-token.inc' %] [% IF rooms_available_to_delete == 1 %] @@ -973,6 +1000,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -1002,6 +1030,7 @@
+ [% INCLUDE 'csrf-token.inc' %] @@ -1054,6 +1083,7 @@

+ [% INCLUDE 'csrf-token.inc' %] @@ -1062,6 +1092,7 @@

+ [% INCLUDE 'csrf-token.inc' %] diff --git a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/opac/calendar.tt b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/opac/calendar.tt index ffa17d6..23b4112 100644 --- a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/opac/calendar.tt +++ b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/opac/calendar.tt @@ -473,6 +473,7 @@ + [% INCLUDE 'csrf-token.inc' %]
@@ -588,6 +589,7 @@
+ [% INCLUDE 'csrf-token.inc' %] @@ -796,6 +798,7 @@
+ [% INCLUDE 'csrf-token.inc' %] [% IF are_rooms_available == 1 %]
@@ -834,6 +837,7 @@ [% ELSE %]

[% 'No rooms match your criteria!' | gettext %]

+ [% INCLUDE 'csrf-token.inc' %] @@ -867,6 +871,7 @@
+ [% INCLUDE 'csrf-token.inc' %]
[% 'Confirmation' | gettext %]

[% 'Name:' | gettext %]

@@ -910,6 +915,7 @@ + [% INCLUDE 'csrf-token.inc' %] @@ -920,6 +926,7 @@

[% 'An email confirmation has been sent to' | gettext %] [% patron_email %]!

[% END %]
+ [% INCLUDE 'csrf-token.inc' %] diff --git a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/tool.tt b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/tool.tt index bc2e3a2..6e7ef42 100644 --- a/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/tool.tt +++ b/Koha/Plugin/Com/MarywoodUniversity/RoomReservations/tool.tt @@ -53,6 +53,7 @@ }
+ [% INCLUDE 'csrf-token.inc' %] @@ -83,6 +84,7 @@ }; + [% INCLUDE 'csrf-token.inc' %] @@ -121,6 +123,7 @@ + [% INCLUDE 'csrf-token.inc' %] @@ -210,6 +213,7 @@ } + [% INCLUDE 'csrf-token.inc' %] @@ -353,6 +357,7 @@
+ [% INCLUDE 'csrf-token.inc' %] @@ -449,6 +454,7 @@
+ [% INCLUDE 'csrf-token.inc' %]