Bug 34368: Add CSRF token to Content Management pages
authorDavid Cook <dcook@prosentient.com.au>
Tue, 25 Jul 2023 05:18:00 +0000 (05:18 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 8 Aug 2023 00:00:00 +0000 (21:00 -0300)
commit593e1dc5840f59d1c8f7fb457fe580b907f46385
tree66dfeb9cf2b727661d9fc25321ce9a7b2ae6c2f9
parent9497556fef914ab22d3a5be7f3449985032901f3
Bug 34368: Add CSRF token to Content Management pages

This change adds a CSRF token to the Content Management pages
at additional-contents.pl.

Test plan:
0. Apply patch
1. koha-plack --restart kohadev
2. Try to add "News", "HTML customizations", and "Pages".
3. Try to delete these new content entries
4. Note that you were successful in your endeavours

JD amended patch: remove empty line removal (no need to create
unecessary conflicts)

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt
tools/additional-contents.pl