Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-20350

Incorrect escaping of double-quotes in iCalendar text values

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.17
    • Fix Version/s: 4.7.19
    • Component/s: Core CiviCRM
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      The Smarty modifier {crmICalText} is currently escaping double-quotes in TEXT values such that, for exmample, the string

      Call me "foo".

      is represented in an icalendar DESCRIPTION field like so:

      DESCRIPTION:Call me DQUOTEfooDQUOTE.
      

      The spec at https://tools.ietf.org/html/rfc2445#section-4.3.11 indicates that double and single need not be escaped at all, as does the example for the DESCRIPTION field (https://tools.ietf.org/html/rfc2445#section-4.8.1.5), so the correct representation would be

      DESCRIPTION:Call me "foo".

      Note that this is also mentioned tangentially in CRM-14785, which is actually about a slightly different aspect of escaping.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                allenshaw Allen Shaw
                Reporter:
                allenshaw Allen Shaw
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: