Make WordPress Core


Ignore:
Timestamp:
03/29/2005 02:52:41 PM (21 years ago)
Author:
ryan
Message:

Trim comment info. http://mosquito.wordpress.org/view.php?id=1183 Props: ryanduff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-comments-post.php

    r2464 r2490  
    1414}
    1515
    16 $comment_author       = $_POST['author'];
    17 $comment_author_email = $_POST['email'];
    18 $comment_author_url   = $_POST['url'];
    19 $comment_content      = $_POST['comment'];
     16$comment_author       = trim($_POST['author']);
     17$comment_author_email = trim($_POST['email']);
     18$comment_author_url   = trim($_POST['url']);
     19$comment_content      = trim($_POST['comment']);
    2020
    2121// If the user is logged in
Note: See TracChangeset for help on using the changeset viewer.