public
Description: WordPress Releases
Homepage: http://www.wordpress.org/
Clone URL: git://github.com/ianloic/wordpress.git
ianloic (author)
Fri Sep 05 20:36:45 -0700 2008
commit  b99043d5a380c9360d061fc455c739a53b1465a2
tree    f79cdd394a63c5f5ff397cd503b314c6688f5cd1
wordpress / wp-pass.php
100644 11 lines (8 sloc) 0.296 kb
1
2
3
4
5
6
7
8
9
10
11
<?php
require( dirname(__FILE__) . '/wp-config.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);
 
wp_safe_redirect(wp_get_referer());
?>