diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2006-12-05 06:40:44 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2006-12-05 06:40:44 +0000 |
commit | be8587117ac82f5bc1229e8e1ae8f933945b1157 (patch) | |
tree | 018aab9dd9a6382dcdb58a9dd27351a384f2a351 /functions/ical_parser.php | |
parent | 67c8b7e6371099f64cf885d234415519f5ba4c66 (diff) | |
download | phpicalendar-be8587117ac82f5bc1229e8e1ae8f933945b1157.tar.gz phpicalendar-be8587117ac82f5bc1229e8e1ae8f933945b1157.tar.bz2 phpicalendar-be8587117ac82f5bc1229e8e1ae8f933945b1157.zip |
patch for MS outlook line continuations
Diffstat (limited to 'functions/ical_parser.php')
-rw-r--r-- | functions/ical_parser.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |