Ticket #4452: 4452-2.diff
File 4452-2.diff, 554 bytes (added by , 17 years ago) |
---|
-
wp-admin/import/wordpress.php
37 37 function get_tag( $string, $tag ) { 38 38 global $wpdb; 39 39 preg_match("|<$tag.*?>(.*?)</$tag>|is", $string, $return); 40 $return = preg_replace('| <!\[CDATA\[(.*)\]\]>|', '$1', $return[1]);40 $return = preg_replace('|^<!\[CDATA\[(.*)\]\]>$|s', '$1', $return[1]); 41 41 $return = $wpdb->escape( trim( $return ) ); 42 42 return $return; 43 43 }