diff options
author | Chad Little <clittle@users.sourceforge.net> | 2004-07-30 01:16:26 +0000 |
---|---|---|
committer | Chad Little <clittle@users.sourceforge.net> | 2004-07-30 01:16:26 +0000 |
commit | eaedec19b2db31e92030cb20488e56558e1205ee (patch) | |
tree | e47ec7d26ff4f1477647753e5d825647084ec39d /functions | |
parent | 79ddaa03b9f645afb4cd42c5db26493919504a24 (diff) | |
download | phpicalendar-eaedec19b2db31e92030cb20488e56558e1205ee.tar.gz phpicalendar-eaedec19b2db31e92030cb20488e56558e1205ee.tar.bz2 phpicalendar-eaedec19b2db31e92030cb20488e56558e1205ee.zip |
Fix for [ 1000362 ] phpicalendar 2.0 beta problems.
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 8ef3416..5decda8 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -121,11 +121,11 @@ foreach ($cal_filelist as $filename) { while (!feof($ifile)) { $line = $nextline; $nextline = fgets($ifile, 1024); - $nextline = str_replace("\r\n", "", $nextline); + $nextline = ereg_replace("[\r\n]", "", $nextline); while (substr($nextline, 0, 1) == " ") { $line = $line . substr($nextline, 1); $nextline = fgets($ifile, 1024); - $nextline = str_replace("\r\n", "", $nextline); + $nextline = ereg_replace("[\r\n]", "", $nextline); } $line = trim($line); |