From e7898e96e081a4dde6e1a4d1eb41775b010e256f Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 31 Jan 2019 09:40:08 +0000 Subject: [PATCH] Bug 22243: Fix unescaped apostrophe in Z target This patch escapes apostrophes in the z39.50 target name prior to them being embedded in the template. To test: - Create a z39.50 target containing an apostrophe in the title - Note that the Advanced Cataloguer editor does not load - Apply the patch - TEST: Note that the Advanced Cataloguer editor does load Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 7ffa71fbd1fa0e4b8c036f02b8a73eacbdfac066) Signed-off-by: Fridolin Somers (cherry picked from commit d97b64c83db7ab1740e43af55c243c075e1f359d) --- koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc index 8648f1c364..8a379def53 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/cateditor-ui.inc @@ -51,7 +51,7 @@ require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr [%- FOREACH server = z3950_servers -%] { server_id: [% server.id | html %], - name: '[% server.servername | html %]', + name: '[% server.servername | html_entity %]', recordtype: '[% server.recordtype | html %]', checked: [% server.checked ? 'true' : 'false' | html %], }, -- 2.39.5