View | Details | Raw Unified | Return to bug 15111
Collapse All | Expand All

(-)a/C4/Output.pm (-5 / +6 lines)
Lines 264-274 sub output_with_http_headers { Link Here
264
    my $cache_policy = 'no-cache';
264
    my $cache_policy = 'no-cache';
265
    $cache_policy .= ', no-store, max-age=0' if $extra_options->{force_no_caching};
265
    $cache_policy .= ', no-store, max-age=0' if $extra_options->{force_no_caching};
266
    my $options = {
266
    my $options = {
267
        type    => $content_type_map{$content_type},
267
        type              => $content_type_map{$content_type},
268
        status  => $status,
268
        status            => $status,
269
        charset => 'UTF-8',
269
        charset           => 'UTF-8',
270
        Pragma          => 'no-cache',
270
        Pragma            => 'no-cache',
271
        'Cache-Control' => $cache_policy,
271
        'Cache-Control'   => $cache_policy,
272
        'X-Frame-Options' => 'DENY',
272
    };
273
    };
273
    $options->{expires} = 'now' if $extra_options->{force_no_caching};
274
    $options->{expires} = 'now' if $extra_options->{force_no_caching};
274
275
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (+12 lines)
Lines 2-7 Link Here
2
[% USE AudioAlerts %]
2
[% USE AudioAlerts %]
3
[% USE String %]
3
[% USE String %]
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
6
[%# Prevent XFS attacks -%]
7
<style id="antiClickjack">body{display:none !important;}</style>
8
<script type="text/javascript">
9
   if (self === top) {
10
       var antiClickjack = document.getElementById("antiClickjack");
11
       antiClickjack.parentNode.removeChild(antiClickjack);
12
   } else {
13
       top.location = self.location;
14
   }
15
</script>
16
5
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
17
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
6
18
7
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui.css" />
19
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui.css" />
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-1 / +12 lines)
Lines 1-6 Link Here
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2
<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
2
<meta name="generator" content="Koha [% Version %]" /> <!-- leave this for stats -->
3
<meta name="viewport" content="width=device-width, initial-scale=1" />
3
<meta name="viewport" content="width=device-width, initial-scale=1" />
4
5
[%# Prevent XFS attacks -%]
6
<style id="antiClickjack">body{display:none !important;}</style>
7
<script type="text/javascript">
8
   if (self === top) {
9
       var antiClickjack = document.getElementById("antiClickjack");
10
       antiClickjack.parentNode.removeChild(antiClickjack);
11
   } else {
12
       top.location = self.location;
13
   }
14
</script>
15
4
<link rel="shortcut icon" href="[% IF ( OpacFavicon ) %][% OpacFavicon %][% ELSE %][% interface %]/[% theme %]/images/favicon.ico[% END %]" type="image/x-icon" />
16
<link rel="shortcut icon" href="[% IF ( OpacFavicon ) %][% OpacFavicon %][% ELSE %][% interface %]/[% theme %]/images/favicon.ico[% END %]" type="image/x-icon" />
5
[% IF ( bidi ) %]
17
[% IF ( bidi ) %]
6
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/lib/bootstrap/css/bootstrap-rtl.min.css" />
18
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/lib/bootstrap/css/bootstrap-rtl.min.css" />
7
- 

Return to bug 15111