From f4a9e942424524da9251f4d55dd01fd08e05846f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 28 Jul 2016 13:01:43 +0100 Subject: [PATCH] Bug 17021: Fix XSS in circ/returns.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: Enter the following in the barcode input: => Without this patch you will see the alert => With this patch, no more alert Signed-off-by: Chris Cormack Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall (cherry picked from commit 12b4c83f5a5c11af635cae83e6837ff80dc02da7) Signed-off-by: Frédéric Demians (cherry picked from commit 4f5121a99e063fc05fb19caac89e5a56b1ff0afb) Signed-off-by: Julian Maurice --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 38c5887069..db51f183de 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -249,7 +249,7 @@ $(document).ready(function () { - + @@ -411,7 +411,7 @@ $(document).ready(function () { - + @@ -448,7 +448,7 @@ $(document).ready(function () {

[% END %] [% IF ( errmsgloo.badbarcode ) %] -

No item with barcode: [% errmsgloo.msg %]

+

No item with barcode: [% errmsgloo.msg | html %]

[% END %] [% IF ( errmsgloo.ispermanent ) %]

Please return item to: [% errmsgloo.msg %]

-- 2.39.5