Bugzilla – Attachment 63020 Details for
Bug 17942
Update style of the web installer with Bootstrap 3
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17942 - Add anti-clickjack code to installer doc head close
Bug-17942---Add-anti-clickjack-code-to-installer-d.patch (text/plain), 1.48 KB, created by
Jonathan Druart
on 2017-05-03 15:01:02 UTC
(
hide
)
Description:
Bug 17942 - Add anti-clickjack code to installer doc head close
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-05-03 15:01:02 UTC
Size:
1.48 KB
patch
obsolete
>From e0ee9b1c07a394fa4a2fff754055869434d05994 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@kylehall.info> >Date: Fri, 28 Apr 2017 12:20:06 +0000 >Subject: [PATCH] Bug 17942 - Add anti-clickjack code to installer doc head > close >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Signed-off-by: Marc Véron <veron@veron.ch> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > .../prog/en/includes/installer-doc-head-close.inc | 10 ++++++++++ > 1 file changed, 10 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/installer-doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/installer-doc-head-close.inc >index 797db5e..16de754 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/installer-doc-head-close.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/installer-doc-head-close.inc >@@ -11,4 +11,14 @@ > <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.validate.min.js"></script> > <script type="text/javascript"> > function _(s) { return s } // dummy function for gettext >+ [%# Prevent XFS attacks -%] >+ $(document).ready(function() { >+ if (self === top) { >+ var antiClickjack = document.getElementById("antiClickjack"); >+ antiClickjack.parentNode.removeChild(antiClickjack); >+ } else { >+ top.location = self.location; >+ } >+ }); > </script> >+<style id="antiClickjack">body{display:none !important;}</style> >-- >2.9.3
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 17942
:
59275
|
59623
|
59624
|
59625
|
59627
|
59721
|
60098
|
60099
|
60100
|
60101
|
60527
|
60710
|
62856
|
62857
|
62861
|
62862
|
63013
|
63019
| 63020 |
63021
|
63022