[Koha-bugs] [Bug 31492] Patron image upload fails on first attempt with CSRF failure

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 17 01:48:17 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31492

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #145303|0                           |1
        is obsolete|                            |

--- Comment #7 from David Nind <david at davidnind.com> ---
Created attachment 145346
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=145346&action=edit
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 at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list