From be8587117ac82f5bc1229e8e1ae8f933945b1157 Mon Sep 17 00:00:00 2001 From: Jim Hu Date: Tue, 5 Dec 2006 06:40:44 +0000 Subject: patch for MS outlook line continuations --- functions/ical_parser.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'functions/ical_parser.php') diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 6db0351..f150fe8 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -133,7 +133,8 @@ foreach ($cal_filelist as $cal_key=>$filename) { $line = $nextline; $nextline = fgets($ifile, 1024); $nextline = ereg_replace("[\r\n]", "", $nextline); - while (substr($nextline, 0, 1) == " ") { + #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); $nextline = ereg_replace("[\r\n]", "", $nextline); -- cgit v1.2.3