From 4f7745f726adb58cdc28c24667707f0375715025 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 2 Nov 2017 16:14:12 -0300 Subject: [PATCH] Bug 19569: Set X-Frame-Options=SAMEORIGIN - opac-showmarc.ok Before and after: wget 'http://catalogue.kohadev.org/cgi-bin/koha/opac-showmarc.pl?id=1&viewas=html' must be the same --- opac/opac-showmarc.pl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opac/opac-showmarc.pl b/opac/opac-showmarc.pl index 1eced618d5..d9f93e6bb4 100755 --- a/opac/opac-showmarc.pl +++ b/opac/opac-showmarc.pl @@ -68,8 +68,7 @@ if ($view eq 'card' || $view eq 'html') { my $htdocs = C4::Context->config('opachtdocs'); my ($theme, $lang) = C4::Templates::themelanguage($htdocs, $xsl, 'opac', $input); $xsl = "$htdocs/$theme/$lang/xslt/$xsl"; - print $input->header(-charset => 'UTF-8'), - Encode::encode_utf8(C4::XSLT::engine->transform($xml, $xsl)); + output_html_with_http_headers $input, undef, Encode::encode_utf8(C4::XSLT::engine->transform($xml, $xsl)); } else { #view eq marc my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ -- 2.11.0