From f8e2216f0ef297d37121d8a9e3e493bac2adba0e Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Sun, 25 Feb 2007 13:35:16 +0000 Subject: [PATCH] strip tags from comment author before determining emptiness status. props Nazgul. fixes #3839 git-svn-id: https://develop.svn.wordpress.org/trunk@4939 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-comments-post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-comments-post.php b/wp-comments-post.php index 155a77b65f..26b476bc9d 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']);