WordPress.org

Make WordPress Core

Changeset 20425


Ignore:
Timestamp:
04/10/2012 05:21:17 PM (10 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r20378 r20425  
    9696$location = apply_filters('comment_post_redirect', $location, $comment);
    9797
    98 wp_redirect($location);
     98wp_safe_redirect( $location );
    9999exit;
Note: See TracChangeset for help on using the changeset viewer.