Skip to content
Browse files

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

git-svn-id: http://svn.automattic.com/wordpress/trunk@20425 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent b0a9755 commit ab78931b8634886a9a29d3af5ec56503930eac27 ryan committed Apr 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-comments-post.php
View
2 wp-comments-post.php
@@ -95,5 +95,5 @@
$location = empty($_POST['redirect_to']) ? get_comment_link($comment_id) : $_POST['redirect_to'] . '#comment-' . $comment_id;
$location = apply_filters('comment_post_redirect', $location, $comment);
-wp_redirect($location);
+wp_safe_redirect( $location );
exit;

0 comments on commit ab78931

Please sign in to comment.
Something went wrong with that request. Please try again.