joedolson / my-calendar

My Calendar WordPress Plugin
https://www.joedolson.com/my-calendar/
GNU General Public License v3.0
19 stars 16 forks source link

Using of QUOTED-PRINTABLE, but it is not part of the iCalendar standard (RFC 5545) #560

Closed flottes closed 1 year ago

flottes commented 1 year ago

Describe the bug Hey i noticed a bug in the download function in my-calendar-api.php function mc_generate_vcal.

The generated ical File is not valid, cause it prints the Description with encoding "QUOTED-PRINTABLE". In RFC 5545 (iCalendar standard: https://datatracker.ietf.org/doc/html/rfc5545#section-3.2.7) only pure 8bit Text or Base64 encoding is allowed.

The generated file is marked as corrupted and cannot be used if you want to use it with programs that strictly require the standard (like nextcloud)

To Reproduce Steps to reproduce the behavior:

  1. Generate a ics file via the download function
  2. Look into the generated file with a texteditor and check the DESCRIPTION: part

Expected behavior The DESCRIPTION: part should be in pure text or base64 encoding (preferred due to unicode).

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context