Bug 23308: Change html to filter to $raw
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Fri, 12 Jul 2019 14:37:26 +0000 (15:37 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Jul 2019 11:24:26 +0000 (12:24 +0100)
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/maintenance.tt

index 50cd287..b15bfbc 100644 (file)
@@ -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>