From: <cl...@us...> - 2004-07-30 01:16:36
|
Update of /cvsroot/phpicalendar/phpicalendar/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5408/functions Modified Files: ical_parser.php Log Message: Fix for [ 1000362 ] phpicalendar 2.0 beta problems. Index: ical_parser.php =================================================================== RCS file: /cvsroot/phpicalendar/phpicalendar/functions/ical_parser.php,v retrieving revision 1.172 retrieving revision 1.173 diff -C2 -d -r1.172 -r1.173 *** ical_parser.php 29 Jul 2004 06:17:54 -0000 1.172 --- ical_parser.php 30 Jul 2004 01:16:26 -0000 1.173 *************** *** 122,130 **** $line = $nextline; $nextline = fgets($ifile, 1024); ! $nextline = str_replace("\r\n", "", $nextline); while (substr($nextline, 0, 1) == " ") { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); ! $nextline = str_replace("\r\n", "", $nextline); } $line = trim($line); --- 122,130 ---- $line = $nextline; $nextline = fgets($ifile, 1024); ! $nextline = ereg_replace("[\r\n]", "", $nextline); while (substr($nextline, 0, 1) == " ") { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); ! $nextline = ereg_replace("[\r\n]", "", $nextline); } $line = trim($line); |