Show
Ignore:
Timestamp:
03/07/06 01:47:45 (3 years ago)
Author:
ryan
Message:

Security back ports from masquerade and MarkJaquith?.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.5/wp-comments-post.php

    r2580 r3627  
    5858header('Pragma: no-cache'); 
    5959 
    60 $location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to'];  
     60$location = ( empty( $_POST['redirect_to'] ) ) ? get_permalink( $comment_post_ID ) : $_POST['redirect_to'];  
    6161 
    6262wp_redirect($location);