Make WordPress Core

Ticket #4087: 4087.diff

File 4087.diff, 502 bytes (added by rob1n, 19 years ago)
  • wp-pass.php

     
    11<?php
    22require( dirname(__FILE__) . '/wp-config.php');
    33
    4 if ( get_magic_quotes_gpc() )
    5         $_POST['post_password'] = stripslashes($_POST['post_password']);
    6 
    74// 10 days
    85setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH);
    96
    107wp_redirect(wp_get_referer());
    11 ?>
    12  No newline at end of file
     8?>