[wp-trac] [WordPress Trac] #23275: WordPress Importer: line-ending mismatch corrupts serialized meta
WordPress Trac
noreply at wordpress.org
Thu Jan 24 16:02:40 UTC 2013
#23275: WordPress Importer: line-ending mismatch corrupts serialized meta
-------------------------------+------------------------------
Reporter: WraithKenny | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Import | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by WraithKenny):
The issue:
I've noticed that on some installs (xampp, mampp) the parsing of the
import file into php, and then the attempt to unserialize fails do to
line-ending mismatches. This patch attempts to normalize the line-endings
if first pass fails, and adjusts the s-length if the second pass fails.
Alternatively, finding out which step causes the line-endings to
change/conflict and preventing it there might be a better/cleaner
solution, but that might be with how plugins store meta_data. My own
plugin seems to save different endings via html post or ajax save. It
doesn't effect the functioning of the plugin tho, only the importing of
the meta_data. This should be fine anyway, except that when the file is
saved (either by the browser, or up to the server or when the file is
processed), then line-endings change, corrupting data or the s:length.
The patch was what I could get working.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23275#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list