From 09fa6f09587b930670633639e306b1141632fce3 Mon Sep 17 00:00:00 2001 From: Isaac Brodsky Date: Thu, 27 Feb 2014 09:10:33 -0600 Subject: [PATCH] Bug 1047: Punctuation in site names no longer breaks Edit/Delete z39.50 server administration The template used to show the Z39.50 server administration page had a bug that caused it to not correctly escape generated query strings. Because the Z39.50 server name is used to lookup the server in order to edit or delete it, when the server name is not passed correctly in the query string, it is impossible to bring up the edit or delete forms (without manually entering the escaped string.) This patch corrects which template is filter used to escape those query strings. To test: (1) Login to intranet, go to Administration -> Z39.50 servers (2) Select "New Z3.50 Server". Enter a server name that contains an ampersand (&), e.g.: "FOO & BAR". Enter other details and submit. Click OK to confirmation message. (3) In the server list, click on the server name, the "Edit" or "Delete" buttons for the server. The correct and full server details should be brought up. Signed-off-by: Owen Leonard Signed-off-by: Marcel de Rooy Signed-off-by: Galen Charlton --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt index a9c8e4e670..1139504089 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt @@ -283,9 +283,9 @@ [% ELSE %] [% END %] -[% loo.name %][% loo.host %]:[% loo.port %][% loo.db %][% loo.userid %][% loo.password %][% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %][% loo.rank %] +[% loo.name %][% loo.host %]:[% loo.port %][% loo.db %][% loo.userid %][% loo.password %][% IF ( loo.checked ) %]Yes[% ELSE %]No[% END %][% loo.rank %] -[% loo.syntax %][% loo.encoding %][% loo.timeout %][% loo.recordtype %]EditDelete +[% loo.syntax %][% loo.encoding %][% loo.timeout %][% loo.recordtype %]EditDelete [% END %] -- 2.39.5