Bugzilla – Attachment 12089 Details for
Bug 8523
Authority hierarchies only support UNIMARC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8523 follow-up: sanitize HTML in template
Bug-8523-follow-up-sanitize-HTML-in-template.patch (text/plain), 2.71 KB, created by
Jared Camins-Esakov
on 2012-09-09 20:03:56 UTC
(
hide
)
Description:
Bug 8523 follow-up: sanitize HTML in template
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-09-09 20:03:56 UTC
Size:
2.71 KB
patch
obsolete
>From ffc80b20d5ea7ae01c2a01d9596663f2c376b083 Mon Sep 17 00:00:00 2001 >From: Jared Camins-Esakov <jcamins@cpbibliography.com> >Date: Sun, 9 Sep 2012 16:14:37 -0400 >Subject: [PATCH] Bug 8523 follow-up: sanitize HTML in template >Content-Type: text/plain; charset="UTF-8" > >--- > .../intranet-tmpl/prog/en/includes/authorities.inc | 11 +++++++---- > .../prog/en/includes/opac-authorities.inc | 4 ++-- > 2 files changed, 9 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc >index 5bf67f4..e4d7067 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities.inc >@@ -1,19 +1,22 @@ > [% BLOCK showhierarchy %] > [% FOREACH tree IN trees %] >+ [% PROCESS showtree tree = tree %] >+ [% END %] >+[% END %] >+[% BLOCK showtree %] > <ul class="hierarchy"> > [% FOREACH node IN tree %] > <li id="hier[% node.authid %]" class="[% node.class %] authnode"> > [% IF ( node.current_value ) %] >- <span id='currentauth'>[% node.value %]</span> >+ <span id='currentauth'>[% node.value | html %]</span> > [% ELSE %] >- <a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value %]</a> >+ <a href="detail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a> > [% END %] > [% IF ( node.children.size > 0 ) %] >- [% PROCESS showhierarchy trees = [ node.children ] %] >+ [% PROCESS showtree tree = node.children %] > [% END %] > </li> > [% END %] > </ul> >- [% END %] > [% END %] > >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc b/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc >index 4c927d3..190b002 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/opac-authorities.inc >@@ -8,9 +8,9 @@ > [% FOREACH node IN tree %] > <li id="hier[% node.authid %]" class="[% node.class %] authnode"> > [% IF ( node.current_value ) %] >- <span id='currentauth'>[% node.value %]</span> >+ <span id='currentauth'>[% node.value | html %]</span> > [% ELSE %] >- <a href="opac-authoritiesdetail.pl?authid=[% node.authid %]" title="Term">[% node.value %]</a> >+ <a href="opac-authoritiesdetail.pl?authid=[% node.authid %]" title="Term">[% node.value | html %]</a> > [% END %] > [% IF ( node.children && node.children.size > 0 ) %] > [% PROCESS showtree tree = node.children %] >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8523
:
11360
|
11885
|
12083
|
12084
|
12086
|
12089
|
12092
|
12097
|
12100
|
12101
|
12125
|
12565