Patch (to be ported)
Project:
Date
Version:
7.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 May 2012 at 17:36 UTC
Updated:
22 Oct 2018 at 19:19 UTC
Jump to comment: Most recent
Comments
Comment #2
ttrafford commentedComment #3
ttrafford commenteddate_ical_parse_text.patch queued for re-testing.
Comment #4
Letharion commentedSetting a meningful title.
Comment #5
ttrafford commentedFrom the commit referenced in the main bug report:
- $line = array_pop($icaldata) . ($line);
+ // Trim up to 1 leading space from wrapped line per iCalendar standard.
+ $line = array_pop($icaldata) . (ltrim(substr($line, 0, 1)) . substr($line, 1));
I should have written that this change is needed because the extra space is now removed at the time of unfolding, and so the replace fails when trying to do this:
$data = str_replace(array("\r\n ", "\n ", "\r "), '', $data);
The patch removes the spaces from the ends of the match strings.
Comment #6
damienmckennaBumped to the D7 branch.