]> git.koha-community.org Git - koha.git/commit
Bug 36244: Do template toolkit processing first
authorAndreas Jonsson <andreas.jonsson@kreablo.se>
Thu, 7 Mar 2024 09:12:25 +0000 (09:12 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 27 Mar 2024 06:54:16 +0000 (07:54 +0100)
commit378be559c20c2cb51fe24860499af5f3b0e5a5e5
tree2fe54ba36b0184b2f2e597114dd2abd8e58cdecd
parent03e644cdea2baf564e3b09a934f301093150d6ff
Bug 36244: Do template toolkit processing first

To avoid injection of template toolkit code
from database fields that are controlled by
untrusted sources.

Test plan:

* review subtest 'Template toolkit syntax in
  parameters' in t/db_dependent/Letters.t
* Run the unit test:
  prove t/db_dependent/Letters.t

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: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 07ac3b0b9450f812bb48cfecf7bf3f47f63279b5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Letters.pm