mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 21:01:30 +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
@ -2529,7 +2529,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…
x
Reference in New Issue
Block a user