X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/76aea3697c6043c1613370f172395b4f65ee71f0..2394dc71e94f8323dc422e89f9841959de78d328:/wp-pass.php diff --git a/wp-pass.php b/wp-pass.php index 1be8095c..556deab9 100644 --- a/wp-pass.php +++ b/wp-pass.php @@ -6,14 +6,12 @@ * @package WordPress */ -/** Make sure that the WordPress bootstrap has ran before continuing. */ +/** Make sure that the WordPress bootstrap has run before continuing. */ require( dirname(__FILE__) . '/wp-load.php'); -if ( get_magic_quotes_gpc() ) - $_POST['post_password'] = stripslashes($_POST['post_password']); - // 10 days -setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); +setcookie('wp-postpass_' . COOKIEHASH, stripslashes( $_POST['post_password'] ), time() + 864000, COOKIEPATH); wp_safe_redirect(wp_get_referer()); -?> \ No newline at end of file +exit; +?>