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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8
    • Fix Version/s: 1.8
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      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

              Assignee:
              upo Roberto Pinna
              Reporter:
              dseverin Dmitry Severin
              Participants:
              Component watchers:
              Damyon Wiese, Dan Marsden, Matteo Scaramuccia, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                31/Mar/07