WordPress.org

Make WordPress Core

Changeset 20486


Ignore:
Timestamp:
04/16/12 22:12:25 (2 years ago)
Author:
nacin
Message:

Use wp_safe_redirect(). No need to allow offsite redirects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/wp-comments-post.php

    r18841 r20486  
    101101$location = apply_filters('comment_post_redirect', $location, $comment); 
    102102 
    103 wp_redirect($location); 
     103wp_safe_redirect( $location ); 
    104104exit; 
    105105?> 
Note: See TracChangeset for help on using the changeset viewer.