X-Git-Url: https://scripts.mit.edu/gitweb/autoinstallsdev/wordpress.git/blobdiff_plain/d3b1ea255664edd2deef17f900a655613d20820d..bf5c68485ef07868ad0a91168ecd0092af7661ae:/wp-pass.php diff --git a/wp-pass.php b/wp-pass.php index 0ad6e5ea..556deab9 100644 --- a/wp-pass.php +++ b/wp-pass.php @@ -9,11 +9,9 @@ /** 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; +?>