Skip to content

Commit c72bbe5

Browse files
committed
CSRF compatibility
1 parent 3c684eb commit c72bbe5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Koha/Plugin/Com/PTFSEurope/PluginBackend/intra-includes/create.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
<div id="errormessage" style="display:none"></div>
4242
</div>
4343
<form method="POST" action="[% here %]" id="create_form">
44+
[% INCLUDE 'csrf-token.inc' %]
4445
<fieldset class="rows">
4546
<legend>Enter metadata</legend>
4647
<input name="stage" id="stage" value="validate" type="hidden"/>

Koha/Plugin/Com/PTFSEurope/PluginBackend/opac-includes/create.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
[% ELSIF whole.stage == "init" %]
3535
<form method="POST" id="create_form">
36+
[% INCLUDE 'csrf-token.inc' %]
3637
<fieldset class="rows">
3738
<legend>Place an interlibrary loan request</legend>
3839
<input name="stage" id="stage" value="validate" type="hidden"/>

0 commit comments

Comments
 (0)