Make WordPress Core


Ignore:
Timestamp:
07/05/2005 08:47:22 PM (21 years ago)
Author:
ryan
Message:

Use wpdb->escape instead of addslashes to prepare DB bound data.

File:
1 edited

Legend:

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

    r2623 r2699  
    2525get_currentuserinfo();
    2626if ( $user_ID ) :
    27     $comment_author       = addslashes($user_identity);
    28     $comment_author_email = addslashes($user_email);
    29     $comment_author_url   = addslashes($user_url);
     27    $comment_author       = $wpdb->escape($user_identity);
     28    $comment_author_email = $wpdb->escape($user_email);
     29    $comment_author_url   = $wpdb->escape($user_url);
    3030else :
    3131    if ( get_option('comment_registration') )
Note: See TracChangeset for help on using the changeset viewer.