0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-05 19:38:04 +08:00
discourse/plugins/discourse-calendar/app/views/discourse_post_event/events
Bannon Tanner f5203dfcca
FIX: Preserve URI delimiters in ICS URL properties, removing TEXT escaping (#42107)
## Summary

Correctly emit `URL` properties in ICS export without RFC 5545 TEXT
escaping by introducing `IcalEncoder.encode_uri`, which decodes HTML
entities, strips CR/LF characters, and leaves valid URI delimiters such
as commas and semicolons intact. This change is applied to both the
Discourse Events calendar feed and the user bookmarks ICS feed; all
textual properties (`SUMMARY`, `LOCATION`, `DESCRIPTION`) continue to
use the existing TEXT encoder.

## Source

- Patch Triage: https://patch.discourse.org/patch-triage/1547

Co-authored-by: discourse-patch-triage
<272280883+discourse-patch-triage[bot]@users.noreply.github.com>
2026-07-28 14:53:16 -05:00
..
index.ics.erb FIX: Preserve URI delimiters in ICS URL properties, removing TEXT escaping (#42107) 2026-07-28 14:53:16 -05:00