Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-29440

Outlook/iCal/Lightning/GoogleCalendar show HTML code in calendar exports

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.1.6, 2.2.3
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      1) Go to http://moodle/calendar/view.php
      2) Click 'New Event'
      3) Add a calendar event for tomorrow with name 'test' and description 'testing 123' - add some html elements to the description (e.g. bold tags around 123)
      4) Click 'iCal' icon to export events as ical

      Now you can try a few things to examine the result - simplest is to open the iCal export in a text editor and examine the description field - it should not have html in it. You could also use a calendar client to do this (e.g. Apple iCal shows the event with the html tags inline)

      Show
      1) Go to http://moodle/calendar/view.php 2) Click 'New Event' 3) Add a calendar event for tomorrow with name 'test' and description 'testing 123' - add some html elements to the description (e.g. bold tags around 123) 4) Click 'iCal' icon to export events as ical Now you can try a few things to examine the result - simplest is to open the iCal export in a text editor and examine the description field - it should not have html in it. You could also use a calendar client to do this (e.g. Apple iCal shows the event with the html tags inline)
    • Affected Branches:
      MOODLE_21_STABLE
    • Fixed Branches:
      MOODLE_21_STABLE, MOODLE_22_STABLE
    • Pull Master Branch:
      MDL-29440-master

      Description

      Outlook, Apple iCal, Thunderbird with Lightning and Google Calendar shows HTML tags in summary/description.
      Maybe RFC2445 doesn't allow HTML here at all.
      So i changed export_execute.php - see Testing Instructions.
      See Screenshot for Outlook2010 before after after patching export_execute.php.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  14/May/12