From ea2a75d86b61d0790a5d937c6050f5e0869819e3 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Sun, 30 Apr 2023 19:41:28 +1200 Subject: [PATCH] Confidential resources should retain more reccurence information To allow for correct expansion of recurring confidential information we also need to retain EXDATE, RECURRENCE-ID and SEQUENCE, otherwise client side expansion may well be wrong. Closes #291 --- inc/caldav-GET-functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/caldav-GET-functions.php b/inc/caldav-GET-functions.php index 7b002142..57d52aab 100644 --- a/inc/caldav-GET-functions.php +++ b/inc/caldav-GET-functions.php @@ -22,6 +22,9 @@ function obfuscated_event( $icalendar ) { $confidential->AddProperty( 'CLASS', 'CONFIDENTIAL' ); $confidential->SetProperties( $icalendar->GetProperties('DTSTART'), 'DTSTART' ); $confidential->SetProperties( $icalendar->GetProperties('RRULE'), 'RRULE' ); + $confidential->SetProperties( $icalendar->GetProperties('EXDATE'), 'EXDATE' ); + $confidential->SetProperties( $icalendar->GetProperties('RECURRENCE-ID'), 'RECURRENCE-ID' ); + $confidential->SetProperties( $icalendar->GetProperties('SEQUENCE'), 'SEQUENCE' ); $confidential->SetProperties( $icalendar->GetProperties('DURATION'), 'DURATION' ); $confidential->SetProperties( $icalendar->GetProperties('DTEND'), 'DTEND' ); $confidential->SetProperties( $icalendar->GetProperties('UID'), 'UID' );