From 78a3e54add36a6afa12c331abcd436e245c0803c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 31 Aug 2006 17:36:35 +0000 Subject: [PATCH] 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 --- wp-admin/import/rss.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/import/rss.php b/wp-admin/import/rss.php index bc5c535ca9..ba31c26702 100644 --- a/wp-admin/import/rss.php +++ b/wp-admin/import/rss.php @@ -38,7 +38,7 @@ class RSS_Import { $index = 0; foreach ($this->posts as $post) { preg_match('|(.*?)|is', $post, $post_title); - $post_title = $wpdb->escape(trim($post_title[1])); + $post_title = str_replace(array(''), '', $wpdb->escape( trim($post_title[1]) )); preg_match('|(.*?)|is', $post, $post_date_gmt);