mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01: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
56774cfeee
commit
70c8649a62
@ -2534,7 +2534,12 @@ class calendar_ical extends calendar_boupdate
|
||||
// Remove videoconference link appended to description in calendar_groupdav->iCal()
|
||||
if (!empty($event['description']) && class_exists('EGroupware\Status\Videoconference\Call'))
|
||||
{
|
||||
$regex = "/^(\r?\n)?(Videoconference|" . lang('Videoconference') . "):\r?\n" . str_replace('/','\/',EGroupware\Status\Videoconference\Call::getMeetingRegex()) ."(\r?\n)*/im";
|
||||
static $regex = "";
|
||||
if(!$regex)
|
||||
{
|
||||
$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']);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user