[wp-trac] [WordPress Trac] #15252: Import WXR breaks serialized postmeta that contains a space before the end of a line.

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 29 14:43:14 UTC 2010


#15252: Import WXR breaks serialized postmeta that contains a space before the end
of a line.
--------------------------+-------------------------------------------------
 Reporter:  shawnparker   |       Owner:                     
     Type:  defect (bug)  |      Status:  new                
 Priority:  normal        |   Milestone:  Awaiting Review    
Component:  Import        |     Version:                     
 Severity:  normal        |    Keywords:  importer, serialize
--------------------------+-------------------------------------------------
 On the whole, serialized data comes in just fine. But we ran in to an
 issue the other day where serialized is damaged on import.

 The case is where serialized data contains a space before a carriage
 return. During import the serialized data is truncated. I'm not sure
 exactly where the problem lies, yet, as it seems it might actually be a
 problem inside `fgets()`. The obvious place to look as at the `rtrim()`
 (line 121 of wordpress-importer.php) that is done on each line but our
 test case failed even when removing this from the importer.

 We haven't been able to investigate much further but I wanted to get the
 conversation started here.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15252>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list