Make WordPress Core

Changeset 4150


Ignore:
Timestamp:
08/31/2006 05:36:35 PM (18 years ago)
Author:
ryan
Message:

strip CDATA from title. Props pgarrett and mdawaffe. fixes #879

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/rss.php

    r4149 r4150  
    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_gmt);
Note: See TracChangeset for help on using the changeset viewer.