diff --git a/wp-comments-post.php b/wp-comments-post.php index 155a77b65..26b476bc9 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -18,7 +18,7 @@ if ( empty($status->comment_status) ) { exit; } -$comment_author = trim($_POST['author']); +$comment_author = trim(strip_tags($_POST['author'])); $comment_author_email = trim($_POST['email']); $comment_author_url = trim($_POST['url']); $comment_content = trim($_POST['comment']);