From ea350cb922291b332b1fe928bc66a861eb286b8a Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@2490 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 63753286d..8866ee024 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();