Open GoogleCodeExporter opened 9 years ago
As a quick workaround you can comment out the trim function on line 65 of
class.iCalReader.php ... or perhaps change it to $line = rtrim($line);
Original comment by sfitchet2@gmail.com
on 7 Oct 2012 at 8:33
Take a look at this file. A couple of issues are addressed here:
- This allows specifying raw data as constructor method, be a complete string
or an array of lines
- Contents are retrieved using file_get_contents(), instead of file: this
allows more flexible parsing.
- Then, a regular expression with a lookahead is used to split string into
lines (ln. 24): !(\r\n?|\n)(?=[^ ])!m. This means: a UNIX or Windows linebreak
is a separator, unless followed by immediate space; do this for all lines.
- Then, the internal folding sequence is "unfolded" by removing "\n " (ln. 34).
You can take a look at this article:
http://tools.ietf.org/html/rfc2445#section-4.1
I'm pretty sure my change can easily be incorporated into your existing class.
;)
Original comment by an...@angkacafe.com
on 17 Oct 2012 at 2:20
Attachments:
Original issue reported on code.google.com by
brett.wa...@gmail.com
on 30 Aug 2012 at 2:12