Skip to content

Commit

Permalink
CSRF: Fix OPAC
Browse files Browse the repository at this point in the history
  • Loading branch information
ammopt committed Mar 7, 2024
1 parent c34be16 commit 6a37ce0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opac-includes/create.inc
Expand Up @@ -17,6 +17,7 @@
[% IF whole.stage == "form" %]
<h2>Create a manual ILL request</h2>
<form id="create_form" method="POST" action=[% here %]>
[% INCLUDE 'csrf-token.inc' %]
<fieldset class="rows">
<legend>General details</legend>
<ol id="general-freeform-fields">
Expand Down Expand Up @@ -106,7 +107,7 @@
<input id="ill-submit" class="btn btn-default" type="submit" value="Create"/>
<a class="cancel" href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a>
</fieldset>
<input type="hidden" name="method" value="create" />
<input type="hidden" name="op" value="cud-create" />
<input type="hidden" name="stage" value="form" />
<input type="hidden" name="backend" value="FreeForm" />
</form>
Expand Down

0 comments on commit 6a37ce0

Please sign in to comment.