From 431530c8bb4bb4ebf0031e719f7d2fecf563645d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Sat, 17 Oct 2009 21:59:12 +0000 Subject: [PATCH] Fix RRULE colon bug --- phpgwapi/inc/horde/Horde/iCalendar.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/horde/Horde/iCalendar.php b/phpgwapi/inc/horde/Horde/iCalendar.php index 2d744ed597..81c816d8b9 100644 --- a/phpgwapi/inc/horde/Horde/iCalendar.php +++ b/phpgwapi/inc/horde/Horde/iCalendar.php @@ -1039,7 +1039,14 @@ class Horde_iCalendar { // Recurrence fields. case 'EXRULE': + break; + case 'RRULE': + if (!empty($params_str) && $params_str[0] == ';') + { + // The standard requires a double colon RRULE:... + $params_str[0] = ':'; + } break; case 'PHOTO': @@ -1100,7 +1107,6 @@ class Horde_iCalendar { } $value = preg_replace('/\r?\n/', "\n", $value); } - break; } if (!empty($params['ENCODING']) && strlen(trim($value))) {