mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
Horde iCalendar.php::parsevCalendar now accepts ';' AND ',' as field delimiter for EXDATE and FREEBUSY
This commit is contained in:
parent
1de2cd5e23
commit
0f4fee5b3f
@ -550,11 +550,11 @@ class Horde_iCalendar {
|
||||
}
|
||||
break;
|
||||
|
||||
// Comma seperated dates.
|
||||
// Comma and semicolon seperated dates.
|
||||
case 'EXDATE':
|
||||
$values = array();
|
||||
$dates = array();
|
||||
preg_match_all('/;([^;]*)/', ';' . $value, $values);
|
||||
preg_match_all('/[,;]([^,;]*)/', ';' . $value, $values);
|
||||
|
||||
foreach ($values[1] as $value) {
|
||||
if (isset($params['VALUE'])) {
|
||||
@ -579,7 +579,7 @@ class Horde_iCalendar {
|
||||
case 'FREEBUSY':
|
||||
$values = array();
|
||||
$periods = array();
|
||||
preg_match_all('/,([^,]*)/', ',' . $value, $values);
|
||||
preg_match_all('/[,;]([^,;]*)/', ';' . $value, $values);
|
||||
foreach ($values[1] as $value) {
|
||||
$periods[] = $this->_parsePeriod($value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user