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

mod/scorm is using stripslashes()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.0
    • Fix Version/s: None
    • Component/s: SCORM
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE

      Description

      We are not using magic quotes now, that means no addslashes or stripslashes.

      I have found two instances of stipslashes() in scorm code, but I am not able to decipher what they are supposed to do. It can be:
      1/ undoing of magic quotes - then we can simply delete it
      2/ unding of addslashes_js() which is supposed to undo string quoting in JS encoded text, unfortunately we have only addslashes_js()

      Please note that the stripslashes() may do either C-style \' stripping, or sql standard '' stripping, but we do not know in moodle, that is why I added the addslashes_js()

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              danmarsden Dan Marsden
              Reporter:
              skodak Petr Skoda
              Tester:
              Nobody
              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: