Fix RRULE colon bug

This commit is contained in:
Jörg Lehrke 2009-10-17 21:59:12 +00:00
parent c1f385be48
commit 431530c8bb

View File

@ -1039,7 +1039,14 @@ class Horde_iCalendar {
// Recurrence fields. // Recurrence fields.
case 'EXRULE': case 'EXRULE':
break;
case 'RRULE': case 'RRULE':
if (!empty($params_str) && $params_str[0] == ';')
{
// The standard requires a double colon RRULE:...
$params_str[0] = ':';
}
break; break;
case 'PHOTO': case 'PHOTO':
@ -1100,7 +1107,6 @@ class Horde_iCalendar {
} }
$value = preg_replace('/\r?\n/', "\n", $value); $value = preg_replace('/\r?\n/', "\n", $value);
} }
break;
} }
if (!empty($params['ENCODING']) && strlen(trim($value))) { if (!empty($params['ENCODING']) && strlen(trim($value))) {