aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-17 03:16:45 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-17 03:16:45 +0000
commit2d94b2334bf924c38815c9f85858700cbf9c4cf2 (patch)
treed8890b4374679c429ae4f315561dc1bf553a0a8c /functions
parent2f90cd7b908ad0cdb118a778994a6a6dac6a586c (diff)
downloadphpicalendar-2d94b2334bf924c38815c9f85858700cbf9c4cf2.tar.gz
phpicalendar-2d94b2334bf924c38815c9f85858700cbf9c4cf2.tar.bz2
phpicalendar-2d94b2334bf924c38815c9f85858700cbf9c4cf2.zip
Fixed \n to <br> in summary and description.
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index c209aaf..3d96c2d 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -435,10 +435,12 @@ if ($parse_file) {
$except_times[] = $regs[4] . $regs[5];
} elseif (stristr($field, 'SUMMARY')) {
+ $data = str_replace("\\n", "<br>", $data);
$data = htmlentities(urlencode($data));
$summary = $data;
} elseif (stristr($field, 'DESCRIPTION')) {
+ $data = str_replace("\\n", "<br>", $data);
$data = htmlentities(urlencode($data));
if ($valarm_set = FALSE) {
$description = $data;

© 2014-2024 Faster IT GmbH | imprint | privacy policy