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

UTF8 not folded correctly in ICAL export

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.4, 1.8.5, 1.9, 1.9.1
    • Fix Version/s: 1.9.6
    • Component/s: Calendar
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE, MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      http://xref.moodle.org/lib/bennu/iCalendar_rfc2445.php.html

      contains function rfc2445_fold() which does not differ between "characters" and "octets". RFC2445 section 4.1

      "Lines of text SHOULD NOT be longer than 75 octets"

      "That is, a long line can be split between any two characters ..."

      If one UTF8 character consists of two or more octets, the function happens to put them on different lines, causing importers, such as Thunderbird/Lightning, to reject the file, because it is no valid UTF8 anymore.

      The rfc2445_unfold() function of the same file ignores the different consequentently, so it is not effected.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Oct/09