root/tags/1.5-rc1/wp-pass.php

Revision 1069, 297 bytes (checked in by donncha, 1 year ago)

Merge with WP 2.3 - testing use only!
Move pluggable functions out of wpmu-functions and into pluggable.php, fixes #439

  • Property svn:eol-style set to native
Line 
1 <?php
2 require( dirname(__FILE__) . '/wp-config.php');
3
4 if ( get_magic_quotes_gpc() )
5     $_POST['post_password'] = stripslashes($_POST['post_password']);
6
7 // 10 days
8 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
9
10 wp_safe_redirect(wp_get_referer());
11 ?>
12
Note: See TracBrowser for help on using the browser.