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
This commit is contained in:
parent
a6200e3ddf
commit
f8e2216f0e
@ -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
Block a user