Dotclear


Ignore:
Timestamp:
01/07/15 12:55:08 (11 years ago)
Author:
Dsls
Branch:
twig
Parents:
2715:a87ddf7dbfb5 (diff), 2910:69efb1571e90 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge with default

File:
1 edited

Legend:

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

    r2650 r2911  
    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; 
     
    385391 
    386392                         # Check for match 
     393                         # Note: We must prefix post_id key with '#'' in pwd_cookie array in order to avoid integer conversion 
     394                         # because MyArray["12345"] is treated as MyArray[12345] 
    387395                         if ((!empty($_POST['password']) && $_POST['password'] == $post_password) 
    388                          || (isset($pwd_cookie[$post_id]) && $pwd_cookie[$post_id] == $post_password)) 
     396                         || (isset($pwd_cookie['#'.$post_id]) && $pwd_cookie['#'.$post_id] == $post_password)) 
    389397                         { 
    390                               $pwd_cookie[$post_id] = $post_password; 
     398                              $pwd_cookie['#'.$post_id] = $post_password; 
    391399                              setcookie('dc_passwd',json_encode($pwd_cookie),0,'/'); 
    392400                         } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map