From a808105b7bfee48bcc4f7b4d7e4a17d93aa007ab Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 26 Nov 2019 09:27:21 +0100 Subject: [PATCH] Bug 24110: Do not html filter TT vars when dumped DumpTemplateVarsIntranet and DumpTemplateVarsOpac are devs tools to display the variables sent to the template. They should not be filtered otherwise it's getting completed to read. For instance: $VAR1 = { var => val } Test plan: Turn DumpTemplateVarsIntranet on Go to the main page Show the source of the page Confirm that the variable are displayed as it and not filtered --- koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc | 3 ++- koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc index bfa90f461a..0ccd70561d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-open.inc @@ -2,6 +2,7 @@ [% USE Koha %] +[% USE raw %] [% IF Koha.Preference('DumpTemplateVarsIntranet') %] [% TRY %] [% USE Stash %] @@ -9,7 +10,7 @@ ', '- ->') %] - [% Dumper.dump( Stash.stash() ) | html %] + [% Dumper.dump( Stash.stash() ) | $raw %] [% END %] [% END %] --> diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc index 292b7251c4..e1188e0e74 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-open.inc @@ -1,6 +1,7 @@ +[% Use raw %] [% USE Koha %] [% IF Koha.Preference('DumpTemplateVarsOpac') %] [% TRY %] @@ -9,7 +10,7 @@ ', '- ->') %] - [% Dumper.dump( Stash.stash() ) | html %] + [% Dumper.dump( Stash.stash() ) | $raw %] [% END %] [% END %] --> -- 2.11.0