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

git-svn-id: https://develop.svn.wordpress.org/trunk@4150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-08-31 17:36:35 +00:00
parent 2e7e539054
commit 78a3e54add
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class RSS_Import {
$index = 0;
foreach ($this->posts as $post) {
preg_match('|<title>(.*?)</title>|is', $post, $post_title);
$post_title = $wpdb->escape(trim($post_title[1]));
$post_title = str_replace(array('<![CDATA[', ']]>'), '', $wpdb->escape( trim($post_title[1]) ));
preg_match('|<pubdate>(.*?)</pubdate>|is', $post, $post_date_gmt);