Make WordPress Core

Changeset 4237


Ignore:
Timestamp:
09/25/2006 02:27:00 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r4236 r4237  
    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.