WordPress.org

Make WordPress Core

Changeset 5718


Ignore:
Timestamp:
06/16/07 02:09:08 (7 years ago)
Author:
ryan
Message:

Regex fix. Props tellyworth. fixes #4452

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/wordpress.php

    r5711 r5718  
    3838        global $wpdb; 
    3939        preg_match("|<$tag.*?>(.*?)</$tag>|is", $string, $return); 
    40         $return = preg_replace('|<!\[CDATA\[(.*)\]\]>|', '$1', $return[1]); 
     40        $return = preg_replace('|^<!\[CDATA\[(.*)\]\]>$|s', '$1', $return[1]); 
    4141        $return = $wpdb->escape( trim( $return ) ); 
    4242        return $return; 
Note: See TracChangeset for help on using the changeset viewer.