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

String datatypes defined in datamodels/scorm_13.js.php reject newlines

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.8
    • 1.8
    • SCORM
    • None
    • MOODLE_18_STABLE
    • MOODLE_18_STABLE

    Description

      Definitions like

      CMIString200 = '^.

      {0,200}

      $';

      reject followinf Unicode chars:
      U+000A LINE FEED
      U+000D CARRIAGE RETURN
      U+2028 LINE SEPARATOR
      U+2029 PARAGRAPH SEPARATOR

      An attempt to call SetValue(param_name, str_value), where str_value contains any of these chars fails.

      What is the reason for such restriction?

      Attachments

        Issue Links

          Activity

            People

              upo Roberto Pinna
              dseverin Dmitry Severin
              Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                31/Mar/07