diff options
Diffstat (limited to 'functions')
-rw-r--r-- | functions/ical_parser.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 3776e55..ad4ed81 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -125,6 +125,7 @@ foreach ($cal_filelist as $cal_key=>$filename) { $nextline = fgets($ifile, 1024); $nextline = ereg_replace("[\r\n]", "", $nextline); } + $line = str_replace('\n',"\n",$line); $line = trim(stripslashes($line)); switch ($line) { case 'BEGIN:VFREEBUSY': @@ -333,9 +334,9 @@ foreach ($cal_filelist as $cal_key=>$filename) { break; case 'DESCRIPTION': - $data = str_replace("\\n", "<br />", $data); + $data = str_replace("\n", "<br />", $data); $data = str_replace("\\t", " ", $data); - $data = str_replace("\\r", "<br />", $data); + $data = str_replace("\r", "<br />", $data); $data = str_replace('$', '$', $data); $data = stripslashes($data); $data = htmlentities(urlencode($data)); |