Changeset 4237

Show
Ignore:
Timestamp:
09/25/06 02:27:00 (2 years ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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);