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

Slashes not stripped on SCORM tree list

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8.3
    • Fix Version/s: 1.9.3
    • Component/s: SCORM
    • Labels:
      None
    • Environment:
      ALL
    • Database:
      MySQL
    • Affected Branches:
      MOODLE_18_STABLE
    • Fixed Branches:
      MOODLE_19_STABLE

      Description

      If SCO title contains special characters (', ", ...) slashes are not stripped.
      see SCORM-TREE.jpg

      I popose a solution adding the following line

      $sco->title = stripslashes($sco->title);

      on

      mod/scorm/datamodels/scorm_13lib.php line 66

      and

      mod/scorm/datamodels/scorm_12lib.php line 216

        Attachments

        1. lo.zip
          12 kB
        2. SCORM-TREE.jpg
          SCORM-TREE.jpg
          33 kB

          Activity

            People

            • Assignee:
              danmarsden Dan Marsden
              Reporter:
              marco.loche Marco Loche
              Participants:
              Component watchers:
              Dan Marsden, Matteo Scaramuccia, Amaia Anabitarte, David Mudrák (@mudrd8mz), Sara Arjona (@sarjona)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                15/Oct/08