Bugzilla – Attachment 68980 Details for
Bug 19569
X-Frame-Options=SAMEORIGIN is not set from opac-showmarc.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19569: Set X-Frame-Options=SAMEORIGIN - opac-showmarc.ok
Bug-19569-Set-X-Frame-OptionsSAMEORIGIN---opac-sho.patch (text/plain), 1.21 KB, created by
Mark Tompsett
on 2017-11-06 14:51:10 UTC
(
hide
)
Description:
Bug 19569: Set X-Frame-Options=SAMEORIGIN - opac-showmarc.ok
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-11-06 14:51:10 UTC
Size:
1.21 KB
patch
obsolete
>From 7b9d32810c364c77e327a83fea46de9b0763b8b1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > 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 1eced61..d9f93e6 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.1.4
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 19569
:
68900
|
68980
|
68983
|
69653