Bugzilla – Attachment 91515 Details for
Bug 23308
Contents of "OpacMaintenanceNotice" HTML escaped on display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23308: Change html to filter to $raw
Bug-23308-Change-html-to-filter-to-raw.patch (text/plain), 1.75 KB, created by
Katrin Fischer
on 2019-07-13 09:44:07 UTC
(
hide
)
Description:
Bug 23308: Change html to filter to $raw
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-07-13 09:44:07 UTC
Size:
1.75 KB
patch
obsolete
>From 482810ca5ce5c43a73ff5ada811d0fe10e0724fe Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Fri, 12 Jul 2019 15:37:26 +0100 >Subject: [PATCH] Bug 23308: Change html to filter to $raw > >This patch changes the erroneous html filter to $raw > >Test plan: >- Apply patch >- Enter some HTML into the OpacMaintenanceNotice syspref >- View the OPAC front page >=> TEST: Observe that the notice displays correctly and the HTML is not >escaped > >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> >Signed-off-by: frederik chenier <frederik.chenier@inlibro.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt >index 50cd287b18..b15bfbcf3e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt >@@ -29,7 +29,7 @@ > <div class="span12"> > <div id="opac-maintenance-message"> > [% IF Koha.Preference( 'OpacMaintenanceNotice' ) %] >- [% Koha.Preference( 'OpacMaintenanceNotice' ) | html %] >+ [% Koha.Preference( 'OpacMaintenanceNotice' ) | $raw %] > [% ELSE %] > <h2>System Maintenance</h2> > <p>The [% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha online[% END %] catalog is offline for system maintenance. We'll be back soon! If you have any questions, please contact the <a href="mailto:[% KohaAdminEmailAddress | uri %]">site administrator</a></p> >-- >2.11.0
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 23308
:
91493
|
91500
|
91501
| 91515