Dotclear

Changeset 2792:08fe3c330258 for inc


Ignore:
Timestamp:
11/15/14 18:48:03 (11 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Prevents Clickjacking as far as possible (see  https://www.owasp.org/index.php/Clickjacking), thanks Narendra Bhati for reporting this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/lib.dc.page.php

    r2788 r2792  
    8989          # Display 
    9090          header('Content-Type: text/html; charset=UTF-8'); 
     91 
     92          // Prevents Clickjacking as far as possible 
     93          header('X-Frame-Options: SAMEORIGIN'); // FF 3.6.9+ Chrome 4.1+ IE 8+ Safari 4+ Opera 10.5+ 
     94 
    9195          echo 
    9296          '<!DOCTYPE html>'. 
     
    308312          # Display 
    309313          header('Content-Type: text/html; charset=UTF-8'); 
     314 
     315          // Prevents Clickjacking as far as possible 
     316          header('X-Frame-Options: SAMEORIGIN'); // FF 3.6.9+ Chrome 4.1+ IE 8+ Safari 4+ Opera 10.5+ 
     317 
    310318          echo 
    311319          '<!DOCTYPE html>'. 
Note: See TracChangeset for help on using the changeset viewer.

Sites map