Changeset 2911:5434e75ad738 for inc/public/lib.urlhandlers.php
- Timestamp:
 - 01/07/15 12:55:08 (11 years ago)
 - 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. - File:
 - 
          
- 1 edited
 
- 
          inc/public/lib.urlhandlers.php (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
inc/public/lib.urlhandlers.php
r2650 r2911 110 110 111 111 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 112 118 $result['content'] = $core->tpl->getData($_ctx->current_tpl); 113 119 $result['content_type'] = $_ctx->content_type; … … 385 391 386 392 # 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] 387 395 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)) 389 397 { 390 $pwd_cookie[ $post_id] = $post_password;398 $pwd_cookie['#'.$post_id] = $post_password; 391 399 setcookie('dc_passwd',json_encode($pwd_cookie),0,'/'); 392 400 }  
Note: See TracChangeset
          for help on using the changeset viewer.
      