• Resolved fflorent

    (@fflorent)


    On our website, we expose the ical / ics links so everyone can subscribe to our events through their calendar.

    We created a Location whose Address field includes quotes. This made the ics invalid (checked using this website https://icalendar.org/validator.html), and members could not subscribe to our events anymore. This is what was produced:

    LOCATION:Place location title\, location Address with "quotes"\, Town\, ...

    When we escape the quotes, the ICS is valid again and we can subscribe again to the ICS feed:

    LOCATION:Place location title\, location Address with \"quotes\"\, Town\, ...

    One way to fix that I identified is to escape the quotes here with a backslash:

    https://plugins.trac.wordpress.org/browser/events-manager/tags/6.6.3/classes/em-event.php#L3016

    Also I noticed the validator was still unsatisfied due to the presence of quotes in X-APPLE-STRUCTURED-LOCATION

    As this property is special, specified with URI, escaping the quotes with backslashes won’t work. Instead RFC 6868 (which is quite simple and very short) introduced rules to escape characters properly.

The topic ‘Locations with quote make ICS invalid’ is closed to new replies.