Page MenuHomePhorge

D5814.1775261011.diff
No OneTemporary

Authored By
Unknown
Size
760 B
Referenced Files
None
Subscribers
None

D5814.1775261011.diff

diff --git a/src/app/Backends/DAV/Vevent.php b/src/app/Backends/DAV/Vevent.php
--- a/src/app/Backends/DAV/Vevent.php
+++ b/src/app/Backends/DAV/Vevent.php
@@ -68,7 +68,13 @@
*/
protected function fromIcal(string $ical): void
{
- $this->vobject = Reader::read($ical, Reader::OPTION_FORGIVING | Reader::OPTION_IGNORE_INVALID_LINES);
+ try {
+ $this->vobject = Reader::read($ical, Reader::OPTION_FORGIVING | Reader::OPTION_IGNORE_INVALID_LINES);
+ } catch (\Exception $e) {
+ \Log::error("Failed to read the ical (code {$e->getCode()}):\n {$e->getMessage()}");
+ \Log::info($ical);
+ throw $e;
+ }
if ($this->vobject->name != 'VCALENDAR') {
return;

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 4, 12:03 AM (1 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18823159
Default Alt Text
D5814.1775261011.diff (760 B)

Event Timeline