Bug 38340: (follow-up) Fix CSRF issues
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
2671fe5a12
commit
a75f3b3262
|
|
@ -112,6 +112,7 @@
|
|||
<input type="hidden" name="method" value="create" />
|
||||
<input type="hidden" name="stage" value="form" />
|
||||
<input type="hidden" name="backend" value="Standard" />
|
||||
<input type="hidden" name="op" value="cud-create" />
|
||||
</form>
|
||||
[% BLOCK backend_jsinclude %]
|
||||
<script>
|
||||
|
|
@ -168,6 +169,7 @@
|
|||
<!-- We need to clarify the borrower that has been requested. -->
|
||||
<h2>Borrower selection</h2>
|
||||
<form method="POST" action="">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
[% FOREACH prop IN whole.value.other.keys %]
|
||||
[% IF prop != 'custom_key' && prop != 'custom_value' && prop != 'cardnumber' %]
|
||||
<input type="hidden" name="[% prop | html %]" value="[% whole.value.other.$prop | html %]" />
|
||||
|
|
@ -203,6 +205,7 @@
|
|||
<input type="submit" value="Select" />
|
||||
<a class="cancel" href="[% parent | url %]">Cancel</a>
|
||||
</fieldset>
|
||||
<input type="hidden" name="op" value="cud-choose-borrower" />
|
||||
</form>
|
||||
[% ELSE %]
|
||||
<p>Unknown stage. This should not have happened. </p>
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
[% IF whole.stage == "form" %]
|
||||
<h2>Migrating an ILL request</h2>
|
||||
<form id="standard_migrate_form" method="POST" action="">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<fieldset class="rows">
|
||||
<legend>General details</legend>
|
||||
<ol id="general-standard-fields">
|
||||
|
|
@ -104,6 +105,7 @@
|
|||
<input id="ill-submit" type="submit" value="Migrate" />
|
||||
<a class="cancel" href="/cgi-bin/koha/ill/ill-requests.pl">Cancel</a>
|
||||
</fieldset>
|
||||
<input type="hidden" name="op" value="cud-migrate" />
|
||||
</form>
|
||||
[% BLOCK backend_jsinclude %]
|
||||
<script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue