Dotclear


Ignore:
Timestamp:
11/17/14 10:30:07 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add an optional setting (blog pref) to prevent blog from Clickjacking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/lib.urlhandlers.php

    r2770 r2797  
    110110 
    111111          header('Content-Type: '.$_ctx->content_type.'; charset=UTF-8'); 
     112 
     113          if ($core->blog->settings->system->prevents_clickjacking) { 
     114               // Prevents Clickjacking as far as possible 
     115               header('X-Frame-Options: SAMEORIGIN'); // FF 3.6.9+ Chrome 4.1+ IE 8+ Safari 4+ Opera 10.5+ 
     116          } 
     117 
    112118          $result['content'] = $core->tpl->getData($_ctx->current_tpl); 
    113119          $result['content_type'] = $_ctx->content_type; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map