aboutsummaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-10-30 04:29:22 +0000
committerChad Little <clittle@users.sourceforge.net>2002-10-30 04:29:22 +0000
commit3488e5254e016de0d491ad6ed9b842641692c08b (patch)
tree430a2e5a7706afc28c2307cf64e4ff3156acf2e4 /functions
parent056e24e3ea6b9f7162f011dcdd138043e96822f8 (diff)
downloadphpicalendar-3488e5254e016de0d491ad6ed9b842641692c08b.tar.gz
phpicalendar-3488e5254e016de0d491ad6ed9b842641692c08b.tar.bz2
phpicalendar-3488e5254e016de0d491ad6ed9b842641692c08b.zip
Added checking for \\r to <br>
Diffstat (limited to 'functions')
-rw-r--r--functions/ical_parser.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/functions/ical_parser.php b/functions/ical_parser.php
index 513b2a1..1d456ba 100644
--- a/functions/ical_parser.php
+++ b/functions/ical_parser.php
@@ -188,10 +188,6 @@ if ($parse_file) {
}
// Handling of the recurring events, RRULE
-// jared-2002.10.17, Commented this line out, replacing it with another. Not sure why the $allday_written var was
-// implemented. This var in this "if" broke all recurring all-day event support (ie, only the first occurrence would show up)
-// let's chat about why and figure out a better solution
-// if ((is_array($rrule_array)) && ($allday_written != TRUE)) {
if (is_array($rrule_array)) {
if (isset($allday_start) && $allday_start != '') {
$hour = '-';
@@ -547,11 +543,13 @@ if ($parse_file) {
} elseif (preg_match("/^SUMMARY/i", $field)) {
$data = str_replace("\\n", "<br>", $data);
+ $data = str_replace("\\r", "<br>", $data);
$data = htmlentities(urlencode($data));
$summary = $data;
} elseif (preg_match("/^DESCRIPTION/i", $field)) {
$data = str_replace("\\n", "<br>", $data);
+ $data = str_replace("\\r", "<br>", $data);
$data = htmlentities(urlencode($data));
if ($valarm_set == FALSE) {
$description = $data;

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