From 241d0e8f1176136bf6d632fded57af45a2edd784 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 31 Aug 2006 17:36:35 +0000 Subject: [PATCH] strip CDATA from title. Props pgarrett and mdawaffe. fixes #879 git-svn-id: http://svn.automattic.com/wordpress/trunk@4150 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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);