Page MenuHomePhorge

D4995.1775284989.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D4995.1775284989.diff

diff --git a/src/app/DataMigrator/EWS/Appointment.php b/src/app/DataMigrator/EWS/Appointment.php
--- a/src/app/DataMigrator/EWS/Appointment.php
+++ b/src/app/DataMigrator/EWS/Appointment.php
@@ -57,6 +57,14 @@
// That's why we'll just remove all ATTACH:CID:... occurrences
// and inject attachments to the main event
$ical = preg_replace('/\r\nATTACH:CID:[^\r]+\r\n(\r\n [^\r\n]*)?/', '', $ical);
+ // We seem to get some weird ATTACH parts as part of ORGANIZER sometimes.
+ // Looks like this (when printing $ical to console):
+ // ORGANIZER;CN="Doe, John":MAILTO:John.Doe@example.comATTACH:CID:2388A81D6CB99E09E72ACF2D192043D418FD86B8@example.com
+ // DESCRIPTION;LANGUAGE=de-DE:@ ...
+ //
+ // FIXME: Investigate the previous preg-replace again, to make sure that doesn't introduce the problem.
+ // It might be if there are two consecutive ATTACH:CID properties?
+ $ical = preg_replace('/ATTACH:CID:[^\r]+\r\n/', "\r\n", $ical);
foreach ((array) $item->getAttachments()->getFileAttachment() as $attachment) {
$_attachment = $this->getAttachment($attachment);

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 6:43 AM (16 h, 2 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18828407
Default Alt Text
D4995.1775284989.diff (1 KB)

Event Timeline