]> git.koha-community.org Git - koha.git/commit
Bug 20685: Escape letter template content in textarea
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 3 May 2018 18:40:11 +0000 (15:40 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 8 Jun 2018 05:13:15 +0000 (07:13 +0200)
commitd6da091d631dc67b0eb4a750a971b7d9dba45c56
treece127f97a18b6890e6900758f9155276551e5b41
parentcd420d1165c72869875236de16e515f4592eeb99
Bug 20685: Escape letter template content in textarea

Test plan:
enter the following text into the Email template for 'HOLD_SLIP'
in Home › Tools › Notices & Slips › Modify notice

<div style='max-width: 4in;'>
<h3><<borrowers.surname>>, <<borrowers.firstname>></h3><br />
<<borrowers.streetnumber>> <<borrowers.address>><br />
<<borrowers.address2>><br />
<<borrowers.city>>, <<borrowers.state>> <<borrowers.zipcode>><br />
<br />
<br />
<img src="/cgi-bin/koha/svc/barcode?barcode=<<borrowers.cardnumber>>&type=Industrial2of5&notext=1">

Edit it again
Without this patch you will get:
<img src="/cgi-bin/koha/svc/barcode?barcode=<<borrowers.cardnumber>>&type=Industrial2of5¬ext=1">

Signed-off-by: Barton Chittenden <barton@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 305d3c36cb685fabce3ec4357ed769c25b12eb73)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt