From c5646b894e4257b2c8ae31868826c17f66a4f9c8 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 29 Mar 2005 14:52:41 +0000 Subject: [PATCH] Trim comment info. http://mosquito.wordpress.org/view.php?id=1183 Props: ryanduff git-svn-id: https://develop.svn.wordpress.org/trunk@2490 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-comments-post.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-comments-post.php b/wp-comments-post.php index 63753286d5..8866ee024b 100644 --- a/wp-comments-post.php +++ b/wp-comments-post.php @@ -13,10 +13,10 @@ if ( empty($post_status) ) { die( __('Sorry, comments are closed for this item.') ); } -$comment_author = $_POST['author']; -$comment_author_email = $_POST['email']; -$comment_author_url = $_POST['url']; -$comment_content = $_POST['comment']; +$comment_author = trim($_POST['author']); +$comment_author_email = trim($_POST['email']); +$comment_author_url = trim($_POST['url']); +$comment_content = trim($_POST['comment']); // If the user is logged in get_currentuserinfo();