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

(-)a/C4/Output.pm (-5 / +6 lines)
Lines 252-262 sub output_with_http_headers { Link Here
252
    my $cache_policy = 'no-cache';
252
    my $cache_policy = 'no-cache';
253
    $cache_policy .= ', no-store, max-age=0' if $extra_options->{force_no_caching};
253
    $cache_policy .= ', no-store, max-age=0' if $extra_options->{force_no_caching};
254
    my $options = {
254
    my $options = {
255
        type    => $content_type_map{$content_type},
255
        type              => $content_type_map{$content_type},
256
        status  => $status,
256
        status            => $status,
257
        charset => 'UTF-8',
257
        charset           => 'UTF-8',
258
        Pragma          => 'no-cache',
258
        Pragma            => 'no-cache',
259
        'Cache-Control' => $cache_policy,
259
        'Cache-Control'   => $cache_policy,
260
        'X-Frame-Options' => 'DENY',
260
    };
261
    };
261
    $options->{expires} = 'now' if $extra_options->{force_no_caching};
262
    $options->{expires} = 'now' if $extra_options->{force_no_caching};
262
263
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (+12 lines)
Lines 1-4 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
3
[%# Prevent XFS attacks -%]
4
<style id="antiClickjack">body{display:none !important;}</style>
5
<script type="text/javascript">
6
   if (self === top) {
7
       var antiClickjack = document.getElementById("antiClickjack");
8
       antiClickjack.parentNode.removeChild(antiClickjack);
9
   } else {
10
       top.location = self.location;
11
   }
12
</script>
13
2
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
14
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% interface %]/[% theme %]/img/favicon.ico[% END %]" type="image/x-icon" />
3
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui.css" />
15
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/jquery/jquery-ui.css" />
4
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/bootstrap/bootstrap.min.css" />
16
<link rel="stylesheet" type="text/css" href="[% interface %]/lib/bootstrap/bootstrap.min.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