Changeset 18712
- Timestamp:
- 09/19/2011 04:17:26 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
wp-includes/post-template.php (modified) (1 diff)
-
wp-pass.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r18651 r18712 565 565 return true; 566 566 567 if ( $_COOKIE['wp-postpass_' . COOKIEHASH]!= $post->post_password )567 if ( stripslashes( $_COOKIE['wp-postpass_' . COOKIEHASH] ) != $post->post_password ) 568 568 return true; 569 569 -
trunk/wp-pass.php
r16847 r18712 10 10 require( dirname(__FILE__) . '/wp-load.php'); 11 11 12 if ( get_magic_quotes_gpc() )13 $_POST['post_password'] = stripslashes($_POST['post_password']);14 15 12 // 10 days 16 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);13 setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH); 17 14 18 15 wp_safe_redirect(wp_get_referer());
Note: See TracChangeset
for help on using the changeset viewer.