Bug 35019: Add a CSRF token when deleting news
authorEmily-Rose Francoeur <emily-rose.francoeur@inLibro.com>
Tue, 10 Oct 2023 17:30:43 +0000 (13:30 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 26 Oct 2023 06:22:12 +0000 (20:22 -1000)
commitd9d95873427cff8347d2a8d83cbfff4cb3d7f89c
tree6709df929dc54c213077076aba1c0dea8e3a5c31
parent099d25a44a2e659eefb263f01e9f3efee5c843b4
Bug 35019: Add a CSRF token when deleting news

I add a CSRF token as a parameter in the link for deleting a news
entry, which solves the problem.

TEST PLAN
1) Apply the patch
2) Go to "Tools > News > New entry"
3) "Display location" should be set to "Staff interface"
4) Fill in the fields
5) Return to the homepage
6) Delete the created news entry
7) The "Additional contents" page is displayed, and the deleted news
   entry no longer appears
8) Return to the homepage; the news entry no longer displays

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: adapted the template change to latest master inline
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit f4b858778268730d49dc9f11d9d2d9bf6faf3f6e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt
mainpage.pl