Changeset 2919:230eb29a531e for inc/public/lib.urlhandlers.php
- Timestamp:
- 01/17/15 11:53:32 (11 years ago)
- Branch:
- 2.7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.urlhandlers.php
r2915 r2919 110 110 111 111 header('Content-Type: '.$_ctx->content_type.'; charset=UTF-8'); 112 113 if ($_ctx->exists('xframeoption')) { 114 $url = parse_url($_ctx->xframeoption); 115 header(sprintf('X-Frame-Options: %s', is_array($url)?("ALLOW-FROM ".$url['scheme'].'://'.$url['host']):'SAMEORIGIN')); 116 } elseif ($core->blog->settings->system->prevents_clickjacking) { 117 // Prevents Clickjacking as far as possible 118 header('X-Frame-Options: SAMEORIGIN'); // FF 3.6.9+ Chrome 4.1+ IE 8+ Safari 4+ Opera 10.5+ 112 if ($core->blog->settings->system->prevents_clickjacking) { 113 if ($_ctx->exists('xframeoption')) { 114 $url = parse_url($_ctx->xframeoption); 115 header(sprintf('X-Frame-Options: %s', is_array($url)?("ALLOW-FROM ".$url['scheme'].'://'.$url['host']):'SAMEORIGIN')); 116 } else { 117 // Prevents Clickjacking as far as possible 118 header('X-Frame-Options: SAMEORIGIN'); // FF 3.6.9+ Chrome 4.1+ IE 8+ Safari 4+ Opera 10.5+ 119 } 119 120 } 120 121
Note: See TracChangeset
for help on using the changeset viewer.