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
This commit is contained in:
parent
db017470fc
commit
92afb1e407
|
@ -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']);
|
||||
|
|
Loading…
Reference in New Issue