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

iCalendar feeds needs html special characters removed or replaced

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.4.5
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      In CRM/Utils/ICalendar.php
      formatText function does this:
      $text = str_replace("\"", "DQUOTE", $text);
      $text = str_replace("
      ", "\\\\", $text);
      $text = str_replace(",", "\,", $text);
      $text = str_replace(";", "\;", $text);

      However HTML characters (like  ) are converted to &nbsp\; and subsequently in the Calendar feed it will show up as "blah blah"

      We should (probably) do the following:
      $text = html_decode($text);
      then do the str_replaces.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                guruevi Evi Vanoost
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: