Update of /cvsroot/phpicalendar/phpicalendar/functions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18198/phpicalendar/functions
Modified Files:
ical_parser.php
Log Message:
patch for MS outlook line continuations
Index: ical_parser.php
===================================================================
RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v
retrieving revision 1.217
retrieving revision 1.218
diff -C2 -d -r1.217 -r1.218
*** ical_parser.php 14 Nov 2006 07:00:51 -0000 1.217
--- ical_parser.php 5 Dec 2006 06:40:44 -0000 1.218
***************
*** 134,138 ****
$nextline = fgets($ifile, 1024);
$nextline = ereg_replace("[\r\n]", "", $nextline);
! while (substr($nextline, 0, 1) == " ") {
$line = $line . substr($nextline, 1);
$nextline = fgets($ifile, 1024);
--- 134,139 ----
$nextline = fgets($ifile, 1024);
$nextline = ereg_replace("[\r\n]", "", $nextline);
! #handle continuation lines that start with either a space or a tab (MS Outlook)
! while ($nextline{0} == " " || $nextline{0} == "\t") {
$line = $line . substr($nextline, 1);
$nextline = fgets($ifile, 1024);
|