Ticket #879: 879.diff

File 879.diff, 0.5 kB (added by mdawaffe, 2 years ago)
  • wp-admin/import/rss.php

    old new  
    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