Make WordPress Core

Ticket #879: 879.diff

File 879.diff, 547 bytes (added by mdawaffe, 19 years ago)
  • wp-admin/import/rss.php

     
    3838                $index = 0;
    3939                foreach ($this->posts as $post) {
    4040                        preg_match('|<title>(.*?)</title>|is', $post, $post_title);
    41                         $post_title = $wpdb->escape(trim($post_title[1]));
     41                        $post_title = str_replace(array('<![CDATA[', ']]>'), '', $wpdb->escape( trim($post_title[1]) ));
    4242
    4343                        preg_match('|<pubdate>(.*?)</pubdate>|is', $post, $post_date);
    4444