summaryrefslogtreecommitdiffstats
path: root/wp-comments-post.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-comments-post.php')
-rw-r--r--wp-comments-post.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-comments-post.php b/wp-comments-post.php
index 155a77b..26b476b 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']);