Changeset 2770:2a2989b67bfb
- Timestamp:
- 11/07/14 14:51:05 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/public/lib.urlhandlers.php
r2635 r2770 385 385 386 386 # Check for match 387 # Note: We must prefix post_id key with '#'' in pwd_cookie array in order to avoid integer conversion 388 # because MyArray["12345"] is treated as MyArray[12345] 387 389 if ((!empty($_POST['password']) && $_POST['password'] == $post_password) 388 || (isset($pwd_cookie[ $post_id]) && $pwd_cookie[$post_id] == $post_password))390 || (isset($pwd_cookie['#'.$post_id]) && $pwd_cookie['#'.$post_id] == $post_password)) 389 391 { 390 $pwd_cookie[ $post_id] = $post_password;392 $pwd_cookie['#'.$post_id] = $post_password; 391 393 setcookie('dc_passwd',json_encode($pwd_cookie),0,'/'); 392 394 }
Note: See TracChangeset
for help on using the changeset viewer.