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-admin/import-textpattern.php

    r2687 r2699  
    9999        $posted = date('Y-m-d H:i:s', $timestamp);
    100100       
    101         $content = addslashes($post['Body_html']);
    102         $title = addslashes($post['Title']);
     101        $content = $wpdb->escape($post['Body_html']);
     102        $title = $wpdb->escape($post['Title']);
    103103        $post_name = sanitize_title($title);
    104104
Note: See TracChangeset for help on using the changeset viewer.