From 850dbe79e79c80eed6bd3dfaef7f5ac12edb266f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 29 Nov 2017 15:24:40 -0300 Subject: [PATCH] Bug 19560: Correctly escape branchcode in admin/branches.pl --- .../intranet-tmpl/prog/en/modules/admin/branches.tt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 7cdd46e7cf..88eddc6b4a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -5,9 +5,9 @@ [% ELSIF op == 'delete_confirm_category' %] › Confirm deletion of group [% category.categorycode %] [% ELSIF op == 'add_form' %] - ›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] + ›[% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %] [% ELSIF op == 'delete_confirm' %] - › Confirm deletion of library '[% library.branchcode %]' + › Confirm deletion of library '[% library.branchcode | html %]' [% END %] [% INCLUDE 'doc-head-close.inc' %] @@ -65,9 +65,9 @@ tinyMCE.init({ [% ELSIF op == 'delete_confirm_category' %] › Confirm deletion of group [% category.categorycode %] [% ELSIF op == 'add_form' %] -› [% IF library %]Modify library[% ELSE %]New library [% library.branchcode %][% END %] +› [% IF library %]Modify library[% ELSE %]New library [% library.branchcode | html %][% END %] [% ELSIF op == 'delete_confirm' %] -› Confirm deletion of library '[% library.branchcode %]' +› Confirm deletion of library '[% library.branchcode | html %]' [% END %] @@ -141,7 +141,7 @@ tinyMCE.init({ [% IF library %] Library code: - [% library.branchcode %] + [% library.branchcode | html %] [% ELSE %] @@ -203,7 +203,7 @@ tinyMCE.init({ [% IF op == 'delete_confirm' and not ( items_count or patrons_count )%]
-

Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode %])?

+

Are you sure you want to delete [% library.branchname |html %] ([% library.branchcode | html %])?

@@ -270,9 +270,9 @@ tinyMCE.init({ [% library.marcorgcode %] [% library.branchip %] - Edit + Edit - +
-- 2.11.0