From 710a37220017025c039d64a06a307130bfdcae67 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 complicate 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 Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Martin Renvoize Signed-off-by: Joy Nelson --- 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..75ab46dfb6 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.39.5