From 92afb1e4070f220bc94dbf917da941db93b97181 Mon Sep 17 00:00:00 2001 From: markjaquith 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: http://svn.automattic.com/wordpress/trunk@4939 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 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']);