mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
Merge branch 'fix'
This commit is contained in:
@@ -118,11 +118,16 @@ class Ics
|
||||
$organizerPart = "ORGANIZER;{$this->preparePerson($this->organizer[0], $this->organizer[1])}";
|
||||
}
|
||||
|
||||
$locationValuePart = $this->escapeString($this->formatMultiline($this->address));
|
||||
|
||||
$locationPart = $locationValuePart ?
|
||||
"LOCATION:$locationValuePart\r\n" : '';
|
||||
|
||||
$body =
|
||||
"DTSTART:{$this->formatTimestamp($this->startDate)}\r\n" .
|
||||
"DTEND:{$this->formatTimestamp($this->endDate)}\r\n" .
|
||||
"SUMMARY:{$this->escapeString($this->summary)}\r\n" .
|
||||
"LOCATION:{$this->escapeString($this->address)}\r\n" .
|
||||
"SUMMARY:{$this->escapeString($this->formatMultiline($this->summary))}\r\n" .
|
||||
$locationPart .
|
||||
$organizerPart .
|
||||
"DESCRIPTION:{$this->escapeString($this->formatMultiline($this->description))}\r\n" .
|
||||
"UID:$this->uid\r\n" .
|
||||
@@ -155,6 +160,7 @@ class Ics
|
||||
return date('Ymd\THis\Z', $timestamp);
|
||||
}
|
||||
|
||||
|
||||
private function escapeString(?string $string): string
|
||||
{
|
||||
if (!$string) {
|
||||
|
||||
Reference in New Issue
Block a user