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
This commit is contained in:
Andrew Ruthven 2023-04-30 19:41:28 +12:00
parent 720eb89adb
commit ea2a75d86b

View File

@ -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' );