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

Deprecate addslashes_js

    XMLWordPrintable

Details

    • MOODLE_20_STABLE, MOODLE_26_STABLE, MOODLE_27_STABLE

    Description

      All our new code like $PAGE->requires->data_for_js and ->js_function_call automatically does json_encode on data, which is better than addslashes_js.

      A quiz grep finds about 50 references in HEAD. We need to

      1. Eliminate all calls in core.
      2. Move it to deprecatedlib.php and add debugging output.

      Attachments

        Issue Links

          Activity

            People

              moodle.com Moodle HQ
              timhunt Tim Hunt
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: