Bugzilla – Attachment 50052 Details for
Bug 16210
Bug 15111 breaks the OPAC if JavaScript is disabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16210: Set X-Frame-Options to SAMEORIGIN in 2 other places
Bug-16210-Set-X-Frame-Options-to-SAMEORIGIN-in-2-o.patch (text/plain), 1.53 KB, created by
Jonathan Druart
on 2016-04-08 09:19:56 UTC
(
hide
)
Description:
Bug 16210: Set X-Frame-Options to SAMEORIGIN in 2 other places
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-04-08 09:19:56 UTC
Size:
1.53 KB
patch
obsolete
>From 4377b425abf8ca64bfbf07498d811ef2c7f5bbce Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 8 Apr 2016 10:04:20 +0100 >Subject: [PATCH] Bug 16210: Set X-Frame-Options to SAMEORIGIN in 2 other > places > >The login page should not be displayed if the page is displayed in a >frame. >--- > C4/Auth.pm | 16 ++++++++++------ > 1 file changed, 10 insertions(+), 6 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index bff7fcd..e3aecec 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -194,9 +194,11 @@ sub get_template_and_user { > > $template->param( loginprompt => 1 ); > print $in->{query}->header( >- -type => 'text/html', >- -charset => 'utf-8', >- -cookie => $cookie, >+ { type => 'text/html', >+ charset => 'utf-8', >+ cookie => $cookie, >+ 'X-Frame-Options' => 'SAMEORIGIN' >+ } > ), > $template->output; > safe_exit; >@@ -1307,9 +1309,11 @@ sub checkauth { > # $cookie = $query->cookie(CGISESSID => $session->id > # ); > print $query->header( >- -type => 'text/html', >- -charset => 'utf-8', >- -cookie => $cookie >+ { type => 'text/html', >+ charset => 'utf-8', >+ cookie => $cookie, >+ 'X-Frame-Options' => 'SAMEORIGIN' >+ } > ), > $template->output; > safe_exit; >-- >2.7.0
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 16210
:
50051
|
50052
|
50147
|
50148
|
50220
|
50221