]> git.koha-community.org Git - koha.git/commit
Bug 31492: Set CSRF token in circulation.pl
authorLucas Gass <lucas@bywatersolutions.com>
Fri, 13 Jan 2023 19:01:55 +0000 (19:01 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 18 Jan 2023 15:46:29 +0000 (15:46 +0000)
commitf0e6f25428a997076d29dd3daeb905befed254f8
treea2e330b7aa03bb8a4f26f2871b38457d2c1d3a5b
parent2ad22b26af3a32bf249395831c23d1e87e5db145
Bug 31492: Set CSRF token in circulation.pl

To test:
* Turn on patronimages system preferences
* Go to any patron account
* Hover over the 'dummy image' for the Add button
* Browse and select an image for upload
* Saving results in the following error:

The form submission failed (Wrong CSRF token). Try to come back, refresh the page, then try again.

Apply patch and try again. You shouldn't need to try twice, it should work on the first attempt now.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
circ/circulation.pl