Bugzilla – Attachment 60710 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.17 KB, created by
Kyle M Hall (khall)
on 2017-02-27 12:52:34 UTC
(
hide
)
Description:
Bug 17942 - Add anti-clickjack code to installer doc head close
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2017-02-27 12:52:34 UTC
Size:
1.17 KB
patch
obsolete
>From 6b091c4572f5d7c868821fb8f8e808de766df377 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@kylehall.info> >Date: Tue, 21 Feb 2017 10:24:56 -0500 >Subject: [PATCH] Bug 17942 - Add anti-clickjack code to installer doc head > close > >--- > .../prog/en/includes/installer-doc-head-close.inc | 13 +++++++++++++ > 1 file changed, 13 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 d62bfe6..ee7af5f 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 >@@ -14,3 +14,16 @@ > function _(s) { return s } // dummy function for gettext > //]]> > </script> >+ >+[%# Prevent XFS attacks -%] >+<script type="text/javascript"> >+$(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.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 17942
:
59275
|
59623
|
59624
|
59625
|
59627
|
59721
|
60098
|
60099
|
60100
|
60101
|
60527
|
60710
|
62856
|
62857
|
62861
|
62862
|
63013
|
63019
|
63020
|
63021
|
63022