Import WXR breaks serialized postmeta that contains a space before the end of a line.
|Reported by:||shawnparker||Owned by:|
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.
Change History (6)
comment:1 in reply to: ↑ description duck_ — 3 years ago
- Keywords reporter-feedback added; importer serialize removed
- Milestone changed from Awaiting Review to WordPress.org site