mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02:00
Calendar: Stop EGroupware\Status\Videoconference\Call::getMeetingRegex() from breaking the import
Jitsi backend was crashing with no error
This commit is contained in:
parent
1dc3a2cf62
commit
48068da833
@ -2528,8 +2528,13 @@ class calendar_ical extends calendar_boupdate
|
|||||||
|
|
||||||
// Remove videoconference link appended to description in calendar_groupdav->iCal()
|
// Remove videoconference link appended to description in calendar_groupdav->iCal()
|
||||||
if (!empty($event['description']) && class_exists('EGroupware\Status\Videoconference\Call'))
|
if (!empty($event['description']) && class_exists('EGroupware\Status\Videoconference\Call'))
|
||||||
|
{
|
||||||
|
static $regex = "";
|
||||||
|
if(!$regex)
|
||||||
{
|
{
|
||||||
$regex = "/^(\r?\n)?(Videoconference|" . lang('Videoconference') . "):\r?\n" . str_replace('/', '\/', EGroupware\Status\Videoconference\Call::getMeetingRegex()) . "(\r?\n)*/im";
|
$regex = "/^(\r?\n)?(Videoconference|" . lang('Videoconference') . "):\r?\n" . str_replace('/', '\/', EGroupware\Status\Videoconference\Call::getMeetingRegex()) . "(\r?\n)*/im";
|
||||||
|
}
|
||||||
|
|
||||||
$event['description'] = preg_replace($regex, '', $event['description']);
|
$event['description'] = preg_replace($regex, '', $event['description']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user