From 53aff9b958eca03d22043768dc53fdd535f44a2e Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Mon, 27 Apr 2020 14:42:49 +0200 Subject: [PATCH] Bug 25291: Escape barcode in ReturnClaims table display --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index e18c2a24c9..576a1d8f70 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -908,7 +908,13 @@ $(document).ready(function() { if ( oObj.author ) { title += ' by ' + oObj.author; } - title += ' ' + oObj.barcode + ''; + title += ' ' + + (oObj.barcode ? oObj.barcode.escapeHtml() : "") + + ''; return title; } -- 2.11.0