From 9fbb55032a0b75d15853bb2d3a20d12d878e828a Mon Sep 17 00:00:00 2001 From: ryan Date: Sat, 16 Jun 2007 02:09:08 +0000 Subject: [PATCH] Regex fix. Props tellyworth. fixes #4452 git-svn-id: http://svn.automattic.com/wordpress/trunk@5718 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/wordpress.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/import/wordpress.php b/wp-admin/import/wordpress.php index fe12cf416a..746a8627e8 100644 --- a/wp-admin/import/wordpress.php +++ b/wp-admin/import/wordpress.php @@ -37,7 +37,7 @@ class WP_Import { function get_tag( $string, $tag ) { global $wpdb; preg_match("|<$tag.*?>(.*?)|is", $string, $return); - $return = preg_replace('||', '$1', $return[1]); + $return = preg_replace('|^$|s', '$1', $return[1]); $return = $wpdb->escape( trim( $return ) ); return $return; }